From c448beafa8fe4175c6ef765c64372ff32e37b137 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 20 Jun 2016 05:03:41 +0200 Subject: [PATCH] indent nits --- managers/cheat_manager.c | 20 ++++++++++---------- managers/core_option_manager.c | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/managers/cheat_manager.c b/managers/cheat_manager.c index eb3da59741..2d0133e867 100644 --- a/managers/cheat_manager.c +++ b/managers/cheat_manager.c @@ -158,17 +158,17 @@ bool cheat_manager_save(const char *path) char code_key[256] = {0}; char enable_key[256] = {0}; - snprintf(key, sizeof(key), "cheat%u", i); - snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i); - snprintf(code_key, sizeof(code_key), "cheat%u_code", i); + snprintf(key, sizeof(key), "cheat%u", i); + snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i); + snprintf(code_key, sizeof(code_key), "cheat%u_code", i); snprintf(enable_key, sizeof(enable_key), "cheat%u_enable", i); 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 - config_set_string(conf, desc_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_string(conf, desc_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); } ret = config_file_write(conf, cheats_file); @@ -237,9 +237,9 @@ bool cheat_manager_load(const char *path) char *tmp = NULL; bool tmp_bool = false; - snprintf(key, sizeof(key), "cheat%u", i); - snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i); - snprintf(code_key, sizeof(code_key), "cheat%u_code", i); + snprintf(key, sizeof(key), "cheat%u", i); + snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i); + snprintf(code_key, sizeof(code_key), "cheat%u_code", i); snprintf(enable_key, sizeof(enable_key), "cheat%u_enable", i); if (config_get_string(conf, desc_key, &tmp)) diff --git a/managers/core_option_manager.c b/managers/core_option_manager.c index 108537625b..c238d6dafd 100644 --- a/managers/core_option_manager.c +++ b/managers/core_option_manager.c @@ -263,7 +263,8 @@ bool core_option_manager_flush(core_option_manager_t *opt) * Returns: true (1) if core option values could be * 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; for (i = 0; i < opt->size; i++)