aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/dc/vmsave.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/dc/vmsave.cpp b/backends/platform/dc/vmsave.cpp
index 5e8f50ca89..b4f8e205b8 100644
--- a/backends/platform/dc/vmsave.cpp
+++ b/backends/platform/dc/vmsave.cpp
@@ -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())) {