mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 08:12:41 +02:00
18 lines
480 B
C
18 lines
480 B
C
#pragma once
|
|
|
|
#include <PR/ultratypes.h>
|
|
|
|
#define CONFIG_FNAME "./pd.ini"
|
|
|
|
void configInit(void);
|
|
s32 configLoad(const char *fname);
|
|
s32 configSave(const char *fname);
|
|
|
|
s32 configGetInt(const char *key, s32 defval);
|
|
f32 configGetFloat(const char *key, f32 defval);
|
|
const char *configGetString(const char *key, const char *defval);
|
|
|
|
void configSetInt(const char *key, s32 val);
|
|
void configSetFloat(const char *key, f32 val);
|
|
void configSetString(const char *key, const char *val);
|