indent nits
This commit is contained in:
parent
f764980eb8
commit
c448beafa8
|
@ -158,17 +158,17 @@ bool cheat_manager_save(const char *path)
|
||||||
char code_key[256] = {0};
|
char code_key[256] = {0};
|
||||||
char enable_key[256] = {0};
|
char enable_key[256] = {0};
|
||||||
|
|
||||||
snprintf(key, sizeof(key), "cheat%u", i);
|
snprintf(key, sizeof(key), "cheat%u", i);
|
||||||
snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i);
|
snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i);
|
||||||
snprintf(code_key, sizeof(code_key), "cheat%u_code", i);
|
snprintf(code_key, sizeof(code_key), "cheat%u_code", i);
|
||||||
snprintf(enable_key, sizeof(enable_key), "cheat%u_enable", i);
|
snprintf(enable_key, sizeof(enable_key), "cheat%u_enable", i);
|
||||||
|
|
||||||
if (handle->cheats[i].desc)
|
if (handle->cheats[i].desc)
|
||||||
config_set_string(conf, desc_key, handle->cheats[i].desc);
|
config_set_string(conf, desc_key, handle->cheats[i].desc);
|
||||||
else
|
else
|
||||||
config_set_string(conf, desc_key, handle->cheats[i].code);
|
config_set_string(conf, desc_key, handle->cheats[i].code);
|
||||||
config_set_string(conf, code_key, handle->cheats[i].code);
|
config_set_string(conf, code_key, handle->cheats[i].code);
|
||||||
config_set_bool(conf, enable_key, handle->cheats[i].state);
|
config_set_bool(conf, enable_key, handle->cheats[i].state);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = config_file_write(conf, cheats_file);
|
ret = config_file_write(conf, cheats_file);
|
||||||
|
@ -237,9 +237,9 @@ bool cheat_manager_load(const char *path)
|
||||||
char *tmp = NULL;
|
char *tmp = NULL;
|
||||||
bool tmp_bool = false;
|
bool tmp_bool = false;
|
||||||
|
|
||||||
snprintf(key, sizeof(key), "cheat%u", i);
|
snprintf(key, sizeof(key), "cheat%u", i);
|
||||||
snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i);
|
snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i);
|
||||||
snprintf(code_key, sizeof(code_key), "cheat%u_code", i);
|
snprintf(code_key, sizeof(code_key), "cheat%u_code", i);
|
||||||
snprintf(enable_key, sizeof(enable_key), "cheat%u_enable", i);
|
snprintf(enable_key, sizeof(enable_key), "cheat%u_enable", i);
|
||||||
|
|
||||||
if (config_get_string(conf, desc_key, &tmp))
|
if (config_get_string(conf, desc_key, &tmp))
|
||||||
|
|
|
@ -263,7 +263,8 @@ bool core_option_manager_flush(core_option_manager_t *opt)
|
||||||
* Returns: true (1) if core option values could be
|
* Returns: true (1) if core option values could be
|
||||||
* successfully saved to disk, otherwise false (0).
|
* successfully saved to disk, otherwise false (0).
|
||||||
**/
|
**/
|
||||||
bool core_option_manager_flush_game_specific(core_option_manager_t *opt, char* path)
|
bool core_option_manager_flush_game_specific(
|
||||||
|
core_option_manager_t *opt, char* path)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < opt->size; i++)
|
for (i = 0; i < opt->size; i++)
|
||||||
|
|
Loading…
Reference in New Issue