mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20: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)
|
||||
{
|
||||
std::cout<<arg0 <<std::endl;
|
||||
if(!PHYSFS_init(arg0))
|
||||
throw Exception(PHYSFS_getLastError());
|
||||
isInited = true;
|
||||
|
||||
@@ -79,7 +79,7 @@ function love.path.getfull(p)
|
||||
local full = cwd .. love.path.normalslashes(p)
|
||||
|
||||
-- Remove trailing /., if applicable
|
||||
return full:match("(.-)/%.") or full
|
||||
return full:match("(.-)/%.$") or full
|
||||
end
|
||||
|
||||
-- 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