mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Fix load/save semantics for cheats ...
This commit is contained in:
parent
ac1a539d22
commit
1282a142d6
9
cheats.c
9
cheats.c
@ -158,13 +158,7 @@ static void cheat_manager_load_config(cheat_manager_t *handle, const char *path,
|
||||
|
||||
config_file_t *conf = config_file_new(path);
|
||||
if (!conf)
|
||||
conf = config_file_new(NULL);
|
||||
|
||||
if (!conf)
|
||||
{
|
||||
SSNES_WARN("Failed to open XML cheat config ...\n");
|
||||
return;
|
||||
}
|
||||
|
||||
char *str;
|
||||
if (!config_get_string(conf, sha256, &str))
|
||||
@ -202,6 +196,9 @@ static void cheat_manager_save_config(cheat_manager_t *handle, const char *path,
|
||||
return;
|
||||
|
||||
config_file_t *conf = config_file_new(path);
|
||||
if (!conf)
|
||||
conf = config_file_new(NULL);
|
||||
|
||||
if (!conf)
|
||||
{
|
||||
SSNES_ERR("Cannot save XML cheat settings!\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user