apply patch 2816373 which fixes extension dot parsing for creating save paths from rom paths
This commit is contained in:
parent
09c7e4bf2c
commit
5d40f08ce2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue