bindings, controls.json file
This commit is contained in:
@@ -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
|
||||
|
||||
+3
-1
@@ -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_
|
||||
Reference in New Issue
Block a user