switch to toml11

This commit is contained in:
Arisotura
2024-04-14 20:25:11 +02:00
parent adb5760604
commit c6427d2501
26 changed files with 11290 additions and 21 deletions

View File

@ -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