mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Minor refactor
This commit is contained in:
parent
cfcfbee604
commit
abbe4021ba
3 changed files with 9 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue