From 8b2f953f62474e5bbf29f16b52f771198e7cd88a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 25 Mar 2023 14:47:33 +0100 Subject: [PATCH] OSYSTEM: Expose getDefaultLogFileName() via OSystem --- backends/platform/sdl/sdl.h | 1 - common/system.h | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h index 263f82e5578..28ba76a09ed 100644 --- a/backends/platform/sdl/sdl.h +++ b/backends/platform/sdl/sdl.h @@ -158,7 +158,6 @@ protected: virtual AudioCDManager *createAudioCDManager(); // Logging - virtual Common::String getDefaultLogFileName() { return Common::String(); } virtual Common::WriteStream *createLogFile(); Backends::Log::Log *_logger; diff --git a/common/system.h b/common/system.h index 02b8535cbda..1daea18567b 100644 --- a/common/system.h +++ b/common/system.h @@ -1650,6 +1650,14 @@ public: */ virtual Common::String getDefaultConfigFileName(); + /** + * Get the default file name (or even path) where the scummvm.log + * will be saved. + * + * Note that not all ports can use this. + */ + virtual Common::String getDefaultLogFileName() { return Common::String(); } + /** * Register the default values for the settings the backend uses into the * configuration manager.