diff options
author | Cameron Cawley | 2019-12-07 14:08:33 +0000 |
---|---|---|
committer | Filippos Karapetis | 2019-12-07 21:15:41 +0200 |
commit | aa083256ec05ee43d9f1977ca2178cacdfb25ae3 (patch) | |
tree | eaaf0b2788921203c0d0487bcedf4ceb2d5e54ed /backends/platform/samsungtv | |
parent | c90164f526b506a59092b48bcf78838777b68544 (diff) | |
download | scummvm-rg350-aa083256ec05ee43d9f1977ca2178cacdfb25ae3.tar.gz scummvm-rg350-aa083256ec05ee43d9f1977ca2178cacdfb25ae3.tar.bz2 scummvm-rg350-aa083256ec05ee43d9f1977ca2178cacdfb25ae3.zip |
SDL: Simplify implementations of getDefaultConfigFileName()
Diffstat (limited to 'backends/platform/samsungtv')
-rw-r--r-- | backends/platform/samsungtv/samsungtv.cpp | 9 | ||||
-rw-r--r-- | backends/platform/samsungtv/samsungtv.h | 3 |
2 files changed, 5 insertions, 7 deletions
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp index bee71b7ff2..5a103793fa 100644 --- a/backends/platform/samsungtv/samsungtv.cpp +++ b/backends/platform/samsungtv/samsungtv.cpp @@ -31,11 +31,6 @@ #include "backends/fs/posix/posix-fs.h" #include "common/textconsole.h" -OSystem_SDL_SamsungTV::OSystem_SDL_SamsungTV() - : - OSystem_POSIX("/mtd_rwarea/.scummvmrc") { -} - void OSystem_SDL_SamsungTV::initBackend() { // Create the savefile manager if (_savefileManager == 0) { @@ -63,6 +58,10 @@ void OSystem_SDL_SamsungTV::fatalError() { for (;;) {} } +Common::String OSystem_SDL_SamsungTV::getDefaultConfigFileName() { + return "/mtd_rwarea/.scummvmrc"; +} + Common::String OSystem_SDL_SamsungTV::getDefaultLogFileName() { if (!Posix::assureDirectoryExists("/mtd_ram", nullptr)) { return Common::String(); diff --git a/backends/platform/samsungtv/samsungtv.h b/backends/platform/samsungtv/samsungtv.h index aad946aa0a..0b98297d79 100644 --- a/backends/platform/samsungtv/samsungtv.h +++ b/backends/platform/samsungtv/samsungtv.h @@ -29,13 +29,12 @@ class OSystem_SDL_SamsungTV : public OSystem_POSIX { public: - OSystem_SDL_SamsungTV(); - virtual void initBackend(); virtual void quit(); virtual void fatalError(); protected: + virtual Common::String getDefaultConfigFileName(); virtual Common::String getDefaultLogFileName(); }; |