mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 01:19:01 +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…
x
Reference in New Issue
Block a user