Only remove trailing /. in paths (bug #194)

This commit is contained in:
Bart van Strien
2011-03-03 09:46:52 +01:00
parent c3cfff987c
commit bac51446a7
3 changed files with 1899 additions and 1900 deletions
@@ -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;
+1 -1
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff