aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/samsungtv
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-26 03:51:28 +0000
committerAlejandro Marzini2010-06-26 03:51:28 +0000
commit51a7440a7c2cba9dbbcfba72066f36e1fec9d648 (patch)
treec9b29a0ee690b334661bd57801b69aac5597cf9f /backends/platform/samsungtv
parent70e9a5b951e9086eb08aed8ce95b22eab0354637 (diff)
downloadscummvm-rg350-51a7440a7c2cba9dbbcfba72066f36e1fec9d648.tar.gz
scummvm-rg350-51a7440a7c2cba9dbbcfba72066f36e1fec9d648.tar.bz2
scummvm-rg350-51a7440a7c2cba9dbbcfba72066f36e1fec9d648.zip
Override quit() and getConfigFileNameString(). Changed parent class to OSystem_POSIX.
svn-id: r50302
Diffstat (limited to 'backends/platform/samsungtv')
-rw-r--r--backends/platform/samsungtv/samsungtv.cpp8
-rw-r--r--backends/platform/samsungtv/samsungtv.h13
2 files changed, 17 insertions, 4 deletions
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp
index e391f19c57..0b9279a423 100644
--- a/backends/platform/samsungtv/samsungtv.cpp
+++ b/backends/platform/samsungtv/samsungtv.cpp
@@ -52,4 +52,12 @@ bool OSystem_SDL_SamsungTV::getFeatureState(Feature f) {
}
}
+void OSystem_SDL_SamsungTV::quit() {
+ deinit();
+}
+
+const char *OSystem_SDL_SamsungTV::getConfigFileNameString() {
+ return "/dtv/usb/sda1/.scummvmrc";
+}
+
#endif
diff --git a/backends/platform/samsungtv/samsungtv.h b/backends/platform/samsungtv/samsungtv.h
index ec2e142b0f..fdb92e04d5 100644
--- a/backends/platform/samsungtv/samsungtv.h
+++ b/backends/platform/samsungtv/samsungtv.h
@@ -30,11 +30,16 @@
#include "backends/platform/sdl/posix/posix.h"
-class OSystem_SDL_SamsungTV : public OSystem_SDL {
+class OSystem_SDL_SamsungTV : public OSystem_POSIX {
public:
- virtual bool hasFeature(Feature f);
- virtual void setFeatureState(Feature f, bool enable);
- virtual bool getFeatureState(Feature f);
+ bool hasFeature(Feature f);
+ void setFeatureState(Feature f, bool enable);
+ bool getFeatureState(Feature f);
+
+ void quit();
+
+protected
+ const char *getConfigFileNameString();
};
#endif