mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 05:54:16 +00:00
(Android/HAVE_DYLIB) Add dynamic libretro path loading to rarch_startup
This commit is contained in:
parent
8ad585ad34
commit
4d2cbd0095
@ -49,6 +49,14 @@ static int rarch_main_init_wrap(const struct rarch_main_wrap *args)
|
|||||||
argv[argc++] = strdup(args->config_path);
|
argv[argc++] = strdup(args->config_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_DYLIB
|
||||||
|
if (args->libretro_path)
|
||||||
|
{
|
||||||
|
argv[argc++] = strdup("-L");
|
||||||
|
argv[argc++] = strdup(args->libretro_path);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (args->verbose)
|
if (args->verbose)
|
||||||
argv[argc++] = strdup("-v");
|
argv[argc++] = strdup("-v");
|
||||||
|
|
||||||
@ -87,6 +95,9 @@ bool rarch_startup (const char * config_path)
|
|||||||
args.sram_path = g_console.default_sram_dir_enable ? g_console.default_sram_dir : NULL,
|
args.sram_path = g_console.default_sram_dir_enable ? g_console.default_sram_dir : NULL,
|
||||||
args.state_path = g_console.default_savestate_dir_enable ? g_console.default_savestate_dir : NULL,
|
args.state_path = g_console.default_savestate_dir_enable ? g_console.default_savestate_dir : NULL,
|
||||||
args.rom_path = g_console.rom_path;
|
args.rom_path = g_console.rom_path;
|
||||||
|
#ifdef HAVE_DYLIB
|
||||||
|
args.libretro_path = g_settings.libretro;
|
||||||
|
#endif
|
||||||
|
|
||||||
int init_ret = rarch_main_init_wrap(&args);
|
int init_ret = rarch_main_init_wrap(&args);
|
||||||
(void)init_ret;
|
(void)init_ret;
|
||||||
|
@ -23,6 +23,9 @@ struct rarch_main_wrap
|
|||||||
const char *sram_path;
|
const char *sram_path;
|
||||||
const char *state_path;
|
const char *state_path;
|
||||||
const char *config_path;
|
const char *config_path;
|
||||||
|
#ifdef HAVE_DYLIB
|
||||||
|
const char *libretro_path;
|
||||||
|
#endif
|
||||||
bool verbose;
|
bool verbose;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user