Minor refactor
This commit is contained in:
+3
-15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user