mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Revert "bugfix cheat saving"
This reverts commit 4c3b06d64039c8cedd0a671d335783dc0a6fc288.
This commit is contained in:
parent
e9752fb546
commit
9862579610
@ -406,7 +406,6 @@ static config_file_t *config_file_new_internal(
|
||||
conf->path = NULL;
|
||||
conf->entries = NULL;
|
||||
conf->tail = NULL;
|
||||
conf->last = NULL;
|
||||
conf->includes = NULL;
|
||||
conf->include_depth = 0;
|
||||
conf->guaranteed_no_duplicates = false ;
|
||||
@ -559,7 +558,6 @@ config_file_t *config_file_new_from_string(const char *from_string)
|
||||
conf->path = NULL;
|
||||
conf->entries = NULL;
|
||||
conf->tail = NULL;
|
||||
conf->last = NULL;
|
||||
conf->includes = NULL;
|
||||
conf->include_depth = 0;
|
||||
conf->guaranteed_no_duplicates = false ;
|
||||
@ -844,7 +842,7 @@ bool config_get_bool(config_file_t *conf, const char *key, bool *in)
|
||||
|
||||
void config_set_string(config_file_t *conf, const char *key, const char *val)
|
||||
{
|
||||
struct config_entry_list *last = (conf->guaranteed_no_duplicates && conf->last) ? conf->last : conf->entries;
|
||||
struct config_entry_list *last = conf->entries;
|
||||
struct config_entry_list *entry = conf->guaranteed_no_duplicates?NULL:config_get_entry(conf, key, &last);
|
||||
|
||||
if (entry && !entry->readonly)
|
||||
@ -870,9 +868,6 @@ void config_set_string(config_file_t *conf, const char *key, const char *val)
|
||||
last->next = entry;
|
||||
else
|
||||
conf->entries = entry;
|
||||
|
||||
conf->last = entry ;
|
||||
|
||||
}
|
||||
|
||||
void config_unset(config_file_t *conf, const char *key)
|
||||
|
@ -57,7 +57,6 @@ struct config_file
|
||||
char *path;
|
||||
struct config_entry_list *entries;
|
||||
struct config_entry_list *tail;
|
||||
struct config_entry_list *last;
|
||||
unsigned include_depth;
|
||||
bool guaranteed_no_duplicates;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user