apply patch 2816373 which fixes extension dot parsing for creating save paths from rom paths

This commit is contained in:
zeromus 2009-07-10 18:15:45 +00:00
parent 09c7e4bf2c
commit 5d40f08ce2
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ const char *GetRomName()
std::string GetRomNameWithoutExtension() std::string GetRomNameWithoutExtension()
{ {
int x = RomName.find_first_of("."); int x = RomName.find_last_of(".");
if (x > 0) if (x > 0)
return RomName.substr(0,x); return RomName.substr(0,x);
else return RomName; else return RomName;