flycast/core/cfg/cfg.h

29 lines
1.3 KiB
C
Raw Normal View History

2013-12-19 17:10:14 +00:00
#pragma once
#include "types.h"
/*
** cfg* prototypes, if you pass NULL to a cfgSave* it will wipe out the section
** } if you pass it to lpKey it will wipe out that particular entry
** } if you add write to something it will create it if its not present
** } ** Strings passed to LoadStr should be MAX_PATH in size ! **
*/
bool cfgOpen();
s32 cfgLoadInt(const wchar * lpSection, const wchar * lpKey,s32 Default);
void cfgSaveInt(const wchar * lpSection, const wchar * lpKey, s32 Int);
void cfgLoadStr(const wchar * lpSection, const wchar * lpKey, wchar * lpReturn,const wchar* lpDefault);
string cfgLoadStr(const wchar * Section, const wchar * Key, const wchar* Default);
2013-12-19 17:10:14 +00:00
void cfgSaveStr(const wchar * lpSection, const wchar * lpKey, const wchar * lpString);
2018-04-11 19:37:31 +00:00
void cfgSaveBool(const wchar * Section, const wchar * Key, bool BoolValue);
2016-03-02 05:48:34 +00:00
bool cfgLoadBool(const wchar * Section, const wchar * Key,bool Default);
2013-12-19 17:10:14 +00:00
s32 cfgExists(const wchar * Section, const wchar * Key);
2015-07-17 21:56:51 +00:00
void cfgSetVirtual(const wchar * lpSection, const wchar * lpKey, const wchar * lpString);
2013-12-19 17:10:14 +00:00
2015-07-17 21:56:51 +00:00
bool ParseCommandLine(int argc,wchar* argv[]);
void cfgSetGameId(const char *id);
const char *cfgGetGameId();
bool cfgHasGameSpecificConfig();
void cfgMakeGameSpecificConfig();
void cfgDeleteGameSpecificConfig();