mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 14:59:37 +00:00
Do not open config files on console in append mode
This commit is contained in:
parent
cc52ee9754
commit
b64207a8aa
@ -329,13 +329,7 @@ static config_file_t *config_file_new_internal(const char *path, unsigned depth)
|
||||
}
|
||||
|
||||
conf->include_depth = depth;
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
// This will create the file if it doesn't exist, and start reading at beginning.
|
||||
FILE *file = fopen(path, "a+");
|
||||
#else
|
||||
FILE *file = fopen(path, "r");
|
||||
#endif
|
||||
FILE *file = fopen(path, "r+");
|
||||
|
||||
if (!file)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user