Config: log a software name to the configuration file
This value is printed to the config file alongside individual settings and cannot be modified. It will be replaced each time the configuration is read, preventing any risk of user error.
This commit is contained in:
parent
78977387ac
commit
2311253aa5
|
@ -312,6 +312,7 @@ void LoadCustom()
|
|||
{
|
||||
char *reios_id = reios_disk_id();
|
||||
|
||||
cfgSaveStr(reios_id, "software.name", reios_software_name);
|
||||
settings.dynarec.idleskip = cfgLoadInt(reios_id,"Dynarec.idleskip", settings.dynarec.idleskip ? 1 : 0) != 0;
|
||||
settings.dynarec.unstable_opt = cfgLoadInt(reios_id,"Dynarec.unstable-opt", settings.dynarec.unstable_opt);
|
||||
settings.dynarec.safemode = cfgLoadInt(reios_id,"Dynarec.safemode", settings.dynarec.safemode);
|
||||
|
|
|
@ -10,5 +10,6 @@ void reios_term();
|
|||
void DYNACALL reios_trap(u32 op);
|
||||
|
||||
char* reios_disk_id();
|
||||
extern char reios_software_name[129];
|
||||
|
||||
#define REIOS_OPCODE 0x085B
|
||||
|
|
Loading…
Reference in New Issue