diff --git a/desmume/src/common.cpp b/desmume/src/common.cpp index 3aaa1614d..df869f6a3 100644 --- a/desmume/src/common.cpp +++ b/desmume/src/common.cpp @@ -145,7 +145,7 @@ const char *GetRomName() std::string GetRomNameWithoutExtension() { - int x = RomName.find_first_of("."); + int x = RomName.find_last_of("."); if (x > 0) return RomName.substr(0,x); else return RomName;