Minor refactor

This commit is contained in:
MihailRis
2023-12-24 13:57:00 +03:00
parent cfcfbee604
commit abbe4021ba
3 changed files with 9 additions and 21 deletions
+3 -15
View File
@@ -6,20 +6,6 @@
#include "../typedefs.h"
#define SETTINGS_FILE "settings.toml"
#define CONTROLS_FILE "controls.json"
using std::filesystem::path;
path platform::get_settings_file() {
return path(SETTINGS_FILE);
}
path platform::get_controls_file() {
return path(CONTROLS_FILE);
}
std::string platform::detect_locale() {
// TODO: implement
std::string name = setlocale(LC_ALL, nullptr);
@@ -37,8 +23,10 @@ void platform::configure_encoding() {
SetConsoleOutputCP(CP_UTF8);
setvbuf(stdout, nullptr, _IOFBF, 1000);
}
#else
void platform::configure_encoding(){
}
#endif
#endif