mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
bindings, controls.json file
This commit is contained in:
parent
e3743b8463
commit
9051db3526
11 changed files with 186 additions and 22 deletions
|
|
@ -1,19 +1,23 @@
|
|||
#include "platform.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <filesystem>
|
||||
#include <iomanip>
|
||||
#include <time.h>
|
||||
|
||||
#include "../typedefs.h"
|
||||
|
||||
#define SETTINGS_FILE "settings.toml"
|
||||
#define CONTROLS_FILE "controls.json"
|
||||
|
||||
using std::string;
|
||||
using std::filesystem::path;
|
||||
|
||||
|
||||
string platform::get_settings_file() {
|
||||
return SETTINGS_FILE;
|
||||
path platform::get_settings_file() {
|
||||
return path(SETTINGS_FILE);
|
||||
}
|
||||
|
||||
path platform::get_controls_file() {
|
||||
return path(CONTROLS_FILE);
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
#define UTIL_PLATFORM_H_
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
namespace platform {
|
||||
extern void configure_encoding();
|
||||
extern std::string get_settings_file();
|
||||
extern std::filesystem::path get_settings_file();
|
||||
extern std::filesystem::path get_controls_file();
|
||||
}
|
||||
|
||||
#endif // UTIL_PLATFORM_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue