aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
authorCpasjuste2018-09-20 16:33:08 +0200
committerFilippos Karapetis2019-05-12 11:59:44 +0300
commit488bbb267a4a96db51794d424131817a8afc50c6 (patch)
tree7615c92e6297ca670333705047cab61735a1d7c0 /backends/saves
parent29028731c65e299aa264231b7caa4d6e853f0b85 (diff)
downloadscummvm-rg350-488bbb267a4a96db51794d424131817a8afc50c6.tar.gz
scummvm-rg350-488bbb267a4a96db51794d424131817a8afc50c6.tar.bz2
scummvm-rg350-488bbb267a4a96db51794d424131817a8afc50c6.zip
SWITCH: add nintendo switch support
Diffstat (limited to 'backends/saves')
-rw-r--r--backends/saves/posix/posix-saves.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/saves/posix/posix-saves.cpp b/backends/saves/posix/posix-saves.cpp
index 444aa63f15..35f9fa2050 100644
--- a/backends/saves/posix/posix-saves.cpp
+++ b/backends/saves/posix/posix-saves.cpp
@@ -47,6 +47,9 @@ 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;