gemus_script_reference:functions:set_cfg_value
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | gemus_script_reference:functions:set_cfg_value [2020/05/12 11:28] – created Jimbo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Back to [[.:|Script Function Reference]] | ||
+ | ====== Set_CFG_Value() ====== | ||
+ | |||
+ | The Set_CFG_Value() function can be used for manipulating configuration files by setting // | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Arguments ===== | ||
+ | |||
+ | ^ Argument ^ Required ^ Description ^ | ||
+ | | // | ||
+ | | //key// | Yes | The key within the configuration file that you want to set. Any [[..: | ||
+ | | //value// | No | The desired value pertaining to //key// that you want to set. Any [[..: | ||
+ | \\ | ||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | < | ||
+ | Set_CFG_Value(%emupath%\config.cfg||$LOADPATH||%gamepath%) | ||
+ | </ | ||
+ | The line in the config file would look something like this: -\\ | ||
+ | $LOADPATH=c: | ||
+ | |||
+ | < | ||
+ | Set_CFG_Value(4||MODE||Windowed) | ||
+ | </ | ||
+ | The line in the config file would look something like this: -\\ | ||
+ | MODE=Windowed | ||
+ | |||
+ | < | ||
+ | Set_CFG_Value(4||MODE||) | ||
+ | </ | ||
+ | The line in the config file would look something like this: -\\ | ||
+ | Mode= | ||
+ | |||
+ | ===== Remarks ===== | ||
+ | |||
+ | * If the key cannot be found in the specified configuration file it will be created and set to the specified value. | ||
+ | * When the script is executed, a warning message will be displayed if the file cannot be found. | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | * [[.: | ||
+ | * [[.: | ||
+ | * [[.:|Script Function Reference]] |
gemus_script_reference/functions/set_cfg_value.txt · Last modified: 2023/10/04 14:15 by 127.0.0.1