Skip to content
Permalink
Browse files

BACKENDS: Use the default save file manager on Switch and SamsungTV

  • Loading branch information...
ccawley2011 authored and bluegr committed Aug 11, 2019
1 parent 7311252 commit ba2bc60043c8a1bbc651ca237783ef5e6883bda0
@@ -35,6 +35,11 @@ OSystem_SDL_SamsungTV::OSystem_SDL_SamsungTV()
}

void OSystem_SDL_SamsungTV::initBackend() {
// Create the savefile manager
if (_savefileManager == 0) {
_savefileManager = new DefaultSaveFileManager("/mtd_wiselink/scummvm savegames");
}

// Create the events manager
if (_eventSource == 0)
_eventSource = new SamsungTVSdlEventSource();
@@ -77,7 +77,7 @@ void OSystem_Switch::initBackend() {

// Create the savefile manager
if (_savefileManager == 0) {
_savefileManager = new POSIXSaveFileManager();
_savefileManager = new DefaultSaveFileManager("./saves");
}

// Event source
@@ -42,12 +42,6 @@

POSIXSaveFileManager::POSIXSaveFileManager() {
// Register default savepath.
#if defined(SAMSUNGTV)
ConfMan.registerDefault("savepath", "/mtd_wiselink/scummvm savegames");
#elif defined(NINTENDO_SWITCH)
Posix::assureDirectoryExists("./saves", nullptr);
ConfMan.registerDefault("savepath", "./saves");
#else
Common::String savePath;

#if defined(MACOSX)
@@ -127,7 +121,6 @@ POSIXSaveFileManager::POSIXSaveFileManager() {
}
}
}
#endif
}

#endif

0 comments on commit ba2bc60

Please sign in to comment.
You can’t perform that action at this time.