mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
21 lines
487 B
C
21 lines
487 B
C
#ifndef INI_H
|
|
#define INI_H
|
|
|
|
typedef struct
|
|
{
|
|
char filename[MAX_PATH];
|
|
|
|
struct {
|
|
unsigned long hash;
|
|
char* data;
|
|
}*sections;
|
|
} INIFILE;
|
|
|
|
void ini_create(INIFILE* ini, char* filename);
|
|
DWORD ini_get_string(INIFILE* ini, LPCSTR section, LPCSTR key, LPCSTR def, LPSTR buf, DWORD size);
|
|
BOOL ini_get_bool(INIFILE* ini, LPCSTR section, LPCSTR key, BOOL def);
|
|
int ini_get_int(INIFILE* ini, LPCSTR section, LPCSTR key, int def);
|
|
void ini_free(INIFILE* ini);
|
|
|
|
#endif
|