mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
Use CWD to get the DefaultDir
This commit is contained in:
parent
0aa9df6acd
commit
20aae8a3b7
@ -193,6 +193,19 @@ static const char *getMountParams(const char *command, char *BlockDevice)
|
||||
|
||||
static void create_path_names(void)
|
||||
{
|
||||
char cwd[FILENAME_MAX];
|
||||
getcwd(cwd, sizeof(cwd));
|
||||
|
||||
strcat(cwd, "app");
|
||||
strlcpy(eboot_path, cwd, sizeof(eboot_path));
|
||||
strlcpy(g_defaults.dirs[DEFAULT_DIR_PORT], eboot_path, sizeof(g_defaults.dirs[DEFAULT_DIR_PORT]));
|
||||
|
||||
strcat(cwd, "/data/retroarch");
|
||||
strlcpy(user_path, cwd, sizeof(user_path));
|
||||
|
||||
// strlcpy(eboot_path, "mc0:/RETROARCH", sizeof(eboot_path));
|
||||
// strlcpy(g_defaults.dirs[DEFAULT_DIR_PORT], eboot_path, sizeof(g_defaults.dirs[DEFAULT_DIR_PORT]));
|
||||
// strlcpy(user_path, "mc0:/RETROARCH/data/retroarch", sizeof(user_path));
|
||||
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], g_defaults.dirs[DEFAULT_DIR_PORT],
|
||||
"CORES", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
|
||||
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], g_defaults.dirs[DEFAULT_DIR_PORT],
|
||||
|
Loading…
Reference in New Issue
Block a user