mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
Strip path from save file name
svn-id: r28410
This commit is contained in:
parent
1c26274061
commit
b9092cc18d
@ -47,6 +47,10 @@ SaveLoad_v2::SaveLoad_v2(GobEngine *vm, const char *targetName) :
|
||||
}
|
||||
|
||||
SaveType SaveLoad_v2::getSaveType(const char *fileName) {
|
||||
const char *backSlash;
|
||||
if ((backSlash = strrchr(fileName, '\\')))
|
||||
fileName = backSlash + 1;
|
||||
|
||||
if (!scumm_stricmp(fileName, "cat.inf"))
|
||||
return kSaveGame;
|
||||
if (!scumm_stricmp(fileName, "cat.cat"))
|
||||
|
@ -58,6 +58,10 @@ SaveLoad_v3::SaveLoad_v3(GobEngine *vm, const char *targetName) :
|
||||
}
|
||||
|
||||
SaveType SaveLoad_v3::getSaveType(const char *fileName) {
|
||||
const char *backSlash;
|
||||
if ((backSlash = strrchr(fileName, '\\')))
|
||||
fileName = backSlash + 1;
|
||||
|
||||
if (!scumm_stricmp(fileName, "cat.inf"))
|
||||
return kSaveGame;
|
||||
if (!scumm_stricmp(fileName, "ima.inf"))
|
||||
|
Loading…
Reference in New Issue
Block a user