mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Only remove trailing /. in paths (bug #194)
This commit is contained in:
@@ -54,7 +54,6 @@ namespace physfs
|
|||||||
|
|
||||||
void Filesystem::init(const char * arg0)
|
void Filesystem::init(const char * arg0)
|
||||||
{
|
{
|
||||||
std::cout<<arg0 <<std::endl;
|
|
||||||
if(!PHYSFS_init(arg0))
|
if(!PHYSFS_init(arg0))
|
||||||
throw Exception(PHYSFS_getLastError());
|
throw Exception(PHYSFS_getLastError());
|
||||||
isInited = true;
|
isInited = true;
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ function love.path.getfull(p)
|
|||||||
local full = cwd .. love.path.normalslashes(p)
|
local full = cwd .. love.path.normalslashes(p)
|
||||||
|
|
||||||
-- Remove trailing /., if applicable
|
-- Remove trailing /., if applicable
|
||||||
return full:match("(.-)/%.") or full
|
return full:match("(.-)/%.$") or full
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Returns the leaf of a full path.
|
-- Returns the leaf of a full path.
|
||||||
|
|||||||
+1898
-1898
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user