Skip to content

Commit

Permalink
Ensure TEMP dir exists when it is required via archdep_tmpnam
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos committed Jan 12, 2023
1 parent b69a803 commit 099ddc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retrodep/archdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ char *archdep_tmpnam(void)
return lib_strdup(tmpName);
#elif __LIBRETRO__
char tmp_name[RETRO_PATH_MAX];
path_mkdir(retro_temp_directory);
snprintf(tmp_name, sizeof(tmp_name), "%s%s%s%d", retro_temp_directory, FSDEV_DIR_SEP_STR, "vice-tmp-", rand());
return lib_strdup(tmp_name);
#else
Expand Down

0 comments on commit 099ddc9

Please sign in to comment.