mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
switch to toml11
This commit is contained in:
@ -22,6 +22,9 @@
|
||||
#include <variant>
|
||||
#include <string>
|
||||
|
||||
//#define TOML_HEADER_ONLY 0
|
||||
//#include "toml/toml.hpp"
|
||||
|
||||
enum
|
||||
{
|
||||
HK_Lid = 0,
|
||||
@ -54,6 +57,14 @@ enum
|
||||
namespace Config
|
||||
{
|
||||
|
||||
struct LegacyEntry
|
||||
{
|
||||
char Name[32];
|
||||
int Type; // 0=int 1=bool 2=string 3=64bit int
|
||||
char TOMLPath[64];
|
||||
bool InstanceUnique; // whether the setting can exist individually for each instance in multiplayer
|
||||
};
|
||||
|
||||
struct ConfigEntry
|
||||
{
|
||||
char Name[32];
|
||||
@ -207,6 +218,9 @@ extern bool GdbARM9BreakOnStartup;
|
||||
bool Load();
|
||||
void Save();
|
||||
|
||||
//toml::node_view<toml::node> GetLocalTable(int instance);
|
||||
//inline toml::node_view<toml::node> GetGlobalTable() { return GetLocalTable(-1); }
|
||||
|
||||
}
|
||||
|
||||
#endif // PLATFORMCONFIG_H
|
||||
|
Reference in New Issue
Block a user