2023-05-30 02:52:55 -07:00
|
|
|
#ifndef FALLOUT_SFALL_INI_H_
|
|
|
|
#define FALLOUT_SFALL_INI_H_
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
namespace fallout {
|
|
|
|
|
|
|
|
/// Sets base directory to lookup .ini files.
|
|
|
|
void sfall_ini_set_base_path(const char* path);
|
|
|
|
|
|
|
|
/// Reads integer key identified by "fileName|section|key" triplet into `value`.
|
|
|
|
bool sfall_ini_get_int(const char* triplet, int* value);
|
|
|
|
|
|
|
|
/// Reads string key identified by "fileName|section|key" triplet into `value`.
|
|
|
|
bool sfall_ini_get_string(const char* triplet, char* value, size_t size);
|
|
|
|
|
2023-09-03 06:26:52 -07:00
|
|
|
/// Writes integer key identified by "fileName|section|key" triplet.
|
|
|
|
bool sfall_ini_set_int(const char* triplet, int value);
|
|
|
|
|
|
|
|
/// Writes string key identified by "fileName|section|key" triplet.
|
|
|
|
bool sfall_ini_set_string(const char* triplet, const char* value);
|
|
|
|
|
2023-05-30 02:52:55 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
|
|
|
#endif /* FALLOUT_SFALL_INI_H_ */
|