mirror of
https://github.com/Creased/RCM-Emulator.git
synced 2026-12-06 02:48:11 +01:00
Persist hardware config to rcm_emu.ini
This commit is contained in:
1 parent
0490e472d0
commit
ca0113042a
4 files changed
+229
No files matched your search
@@ -27,4 +27,12 @@ void config_window_render(EmuState *state);
|
||||
// Returns the SDL_WindowID of the config window (0 if not yet created).
|
||||
Uint32 config_window_id();
|
||||
|
||||
// Persist / restore tweakable hardware values to / from a flat INI file.
|
||||
// `path` is opened relative to the current working directory. Save returns
|
||||
// false on I/O error; load returns false if the file doesn't exist (defaults
|
||||
// stay in place). Loading is additive — keys missing from the file keep
|
||||
// whatever EmuState already held, so old INIs still work as new fields land.
|
||||
bool config_window_save_ini(const EmuState *state, const char *path);
|
||||
bool config_window_load_ini(EmuState *state, const char *path);
|
||||
|
||||
#endif // CONFIG_WINDOW_H
|
||||
Reference in new issue
Block a user