Just a few small things

This commit is contained in:
Henrik Rydgard
2012-11-07 20:59:56 +01:00
parent 3681aab3ed
commit caacaf6744
4 changed files with 15 additions and 6 deletions
+3
View File
@@ -32,6 +32,9 @@ DirectoryFileSystem::DirectoryFileSystem(IHandleAllocator *_hAlloc, std::string
std::string DirectoryFileSystem::GetLocalPath(std::string localpath)
{
if (localpath.empty())
return basePath;
if (localpath[0] == '/')
localpath.erase(0,1);
//Convert slashes