Skip to content

Commit

Permalink
Don't convert to a platform specific string here, it causes bad thing…
Browse files Browse the repository at this point in the history
…s to happen.

"const char * PHYSFS_getRealDir 	( 	const char *  	filename 	 )
Figure out where in the search path a file resides.
The file is specified in platform-independent notation. "
  • Loading branch information
vexed committed Jun 19, 2012
1 parent 769fccc commit 2056093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cpp
Expand Up @@ -452,7 +452,7 @@ static MapFileList listMapFiles()
{
continue;
}
std::string realFileName = std::string("maps") + PHYSFS_getDirSeparator() + *i;
std::string realFileName = std::string("maps/") + *i;
ret.push_back(realFileName);
}
PHYSFS_freeList(subdirlist);
Expand Down

0 comments on commit 2056093

Please sign in to comment.