aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
authorPaweł Kołodziejski2009-11-09 14:43:05 +0000
committerPaweł Kołodziejski2009-11-09 14:43:05 +0000
commit4c2491df3b843948af9be61fa75dbbe8c0bc6043 (patch)
tree27698b0cc1bf79bad7f7d122f666524aa96aa2e8 /backends/saves
parent9290966e273330799d3d483fd23bbc3cdca1e443 (diff)
downloadscummvm-rg350-4c2491df3b843948af9be61fa75dbbe8c0bc6043.tar.gz
scummvm-rg350-4c2491df3b843948af9be61fa75dbbe8c0bc6043.tar.bz2
scummvm-rg350-4c2491df3b843948af9be61fa75dbbe8c0bc6043.zip
added support for samsung tv
svn-id: r45777
Diffstat (limited to 'backends/saves')
-rw-r--r--backends/saves/posix/posix-saves.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/saves/posix/posix-saves.cpp b/backends/saves/posix/posix-saves.cpp
index 0827575edf..5b13513bcb 100644
--- a/backends/saves/posix/posix-saves.cpp
+++ b/backends/saves/posix/posix-saves.cpp
@@ -44,6 +44,9 @@
POSIXSaveFileManager::POSIXSaveFileManager() {
// Register default savepath based on HOME
+#if defined(SAMSUNGTV)
+ ConfMan.registerDefault("savepath", "/dtv/usb/sda1/.scummvm");
+#else
Common::String savePath;
const char *home = getenv("HOME");
if (home && *home && strlen(home) < MAXPATHLEN) {
@@ -51,6 +54,7 @@ POSIXSaveFileManager::POSIXSaveFileManager() {
savePath += "/" DEFAULT_SAVE_PATH;
ConfMan.registerDefault("savepath", savePath);
}
+#endif
}
/*
POSIXSaveFileManager::POSIXSaveFileManager(const Common::String &defaultSavepath)