diff options
author | Cameron Cawley | 2019-08-04 21:45:17 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-08-05 10:01:30 +0300 |
commit | 8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0 (patch) | |
tree | 363e8777d147e90a75ece84e6aca42be60697dc6 /backends/platform/samsungtv | |
parent | d10c69d0d1c596d4ecce9cbf967c75f3cf95a47b (diff) | |
download | scummvm-rg350-8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0.tar.gz scummvm-rg350-8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0.tar.bz2 scummvm-rg350-8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0.zip |
SDL: Simplify implementation of createLogFile()
Diffstat (limited to 'backends/platform/samsungtv')
-rw-r--r-- | backends/platform/samsungtv/samsungtv.cpp | 8 | ||||
-rw-r--r-- | backends/platform/samsungtv/samsungtv.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp index a766916fab..e72b1ee05d 100644 --- a/backends/platform/samsungtv/samsungtv.cpp +++ b/backends/platform/samsungtv/samsungtv.cpp @@ -57,4 +57,12 @@ void OSystem_SDL_SamsungTV::fatalError() { for (;;) {} } +Common::String OSystem_SDL_SamsungTV::getDefaultLogFileName() { + if (!Posix::assureDirectoryExists("/mtd_ram", nullptr)) { + return Common::String(); + } + + return "/mtd_ram/scummvm.log"; +} + #endif diff --git a/backends/platform/samsungtv/samsungtv.h b/backends/platform/samsungtv/samsungtv.h index fdd1015c8a..aad946aa0a 100644 --- a/backends/platform/samsungtv/samsungtv.h +++ b/backends/platform/samsungtv/samsungtv.h @@ -34,6 +34,9 @@ public: virtual void initBackend(); virtual void quit(); virtual void fatalError(); + +protected: + virtual Common::String getDefaultLogFileName(); }; #endif |