Just a few small things

This commit is contained in:
Henrik Rydgard committed 2012-11-07 20:59:56 +01:00
1 parent 3681aab3ed
commit caacaf6744
4 files changed
+15 -6

No files matched your search

+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