From 65eb851fd8073b7fc997aeaf91d567e8ddf6a357 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 10 Nov 2023 16:25:11 +0300 Subject: [PATCH] Added platform::get_settings_file --- src/util/platform.cpp | 8 ++++++++ src/util/platform.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/util/platform.cpp b/src/util/platform.cpp index fd55a5f34..60ff4be79 100644 --- a/src/util/platform.cpp +++ b/src/util/platform.cpp @@ -1,5 +1,12 @@ #include "platform.h" +#define SETTINGS_FILE "settings.json" + + +std::string platform::get_settings_file() { + return SETTINGS_FILE; +} + #ifdef WIN32 #include @@ -11,4 +18,5 @@ void platform::configure_encoding() { #else void platform::configure_encoding(){ } + #endif \ No newline at end of file diff --git a/src/util/platform.h b/src/util/platform.h index 9e7952d19..a56e7d3a7 100644 --- a/src/util/platform.h +++ b/src/util/platform.h @@ -1,8 +1,11 @@ #ifndef UTIL_PLATFORM_H_ #define UTIL_PLATFORM_H_ +#include + namespace platform { extern void configure_encoding(); + extern std::string get_settings_file(); } #endif // UTIL_PLATFORM_H_ \ No newline at end of file