mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 09:10:29 +00:00
DC: Ignore case for VM filenames
This commit is contained in:
parent
4aacc41fff
commit
95ad63e992
@ -292,11 +292,20 @@ public:
|
||||
};
|
||||
|
||||
class VMSaveManager : public Common::SaveFileManager {
|
||||
private:
|
||||
static int nameCompare(const unsigned char *entry, const char *match) {
|
||||
return !scumm_strnicmp(reinterpret_cast<const char *>(entry), match, 12);
|
||||
}
|
||||
|
||||
public:
|
||||
virtual void updateSavefilesList(Common::StringArray &lockedFiles) {
|
||||
// TODO: implement this (locks files, preventing them from being listed, saved or loaded)
|
||||
}
|
||||
|
||||
VMSaveManager() {
|
||||
vmsfs_name_compare_function = nameCompare;
|
||||
}
|
||||
|
||||
virtual Common::InSaveFile *openRawFile(const Common::String &filename) {
|
||||
InVMSave *s = new InVMSave();
|
||||
if (s->readSaveGame(filename.c_str())) {
|
||||
|
Loading…
Reference in New Issue
Block a user