2013-12-19 17:10:14 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
bool cfgOpen();
|
2021-03-01 09:13:40 +00:00
|
|
|
s32 cfgLoadInt(const std::string& section, const std::string& key, s32 def);
|
|
|
|
void cfgSaveInt(const std::string& section, const std::string& key, s32 value);
|
|
|
|
std::string cfgLoadStr(const std::string& section, const std::string& key, const std::string& def);
|
|
|
|
void cfgSaveStr(const std::string& section, const std::string& key, const std::string& value);
|
|
|
|
void cfgSaveBool(const std::string& section, const std::string& key, bool value);
|
|
|
|
bool cfgLoadBool(const std::string& section, const std::string& key, bool def);
|
|
|
|
void cfgSetVirtual(const std::string& section, const std::string& key, const std::string& value);
|
|
|
|
bool cfgIsVirtual(const std::string& section, const std::string& key);
|
2013-12-19 17:10:14 +00:00
|
|
|
|
2021-03-01 09:13:40 +00:00
|
|
|
bool ParseCommandLine(int argc, char *argv[]);
|
2019-02-16 13:25:54 +00:00
|
|
|
|
2019-10-29 13:34:29 +00:00
|
|
|
void cfgSetAutoSave(bool autoSave);
|
2021-03-01 09:13:40 +00:00
|
|
|
bool cfgHasSection(const std::string& section);
|
|
|
|
void cfgDeleteSection(const std::string& section);
|