Added platform::get_settings_file
This commit is contained in:
parent
5c2ff83e7d
commit
65eb851fd8
@ -1,5 +1,12 @@
|
|||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
|
#define SETTINGS_FILE "settings.json"
|
||||||
|
|
||||||
|
|
||||||
|
std::string platform::get_settings_file() {
|
||||||
|
return SETTINGS_FILE;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
@ -11,4 +18,5 @@ void platform::configure_encoding() {
|
|||||||
#else
|
#else
|
||||||
void platform::configure_encoding(){
|
void platform::configure_encoding(){
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@ -1,8 +1,11 @@
|
|||||||
#ifndef UTIL_PLATFORM_H_
|
#ifndef UTIL_PLATFORM_H_
|
||||||
#define UTIL_PLATFORM_H_
|
#define UTIL_PLATFORM_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace platform {
|
namespace platform {
|
||||||
extern void configure_encoding();
|
extern void configure_encoding();
|
||||||
|
extern std::string get_settings_file();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // UTIL_PLATFORM_H_
|
#endif // UTIL_PLATFORM_H_
|
||||||
Loading…
x
Reference in New Issue
Block a user