mirror of
https://github.com/libretro/RetroArch
synced 2025-04-25 00:02:31 +00:00
Revert "(Android) Set up rarch_main_init_wrap so that it can load dynamic" - revisit
later This reverts commit 42f2d068a7da28122c1eae5b6626985abff6e324.
This commit is contained in:
parent
42f2d068a7
commit
c09fa1c7af
@ -106,8 +106,6 @@ typedef struct
|
|||||||
char shader_file[MAXIMUM_PATH];
|
char shader_file[MAXIMUM_PATH];
|
||||||
char shader_dir[MAXIMUM_PATH];
|
char shader_dir[MAXIMUM_PATH];
|
||||||
#endif
|
#endif
|
||||||
char libretro_path[MAXIMUM_PATH]; /* set this to NULL if libretro cores
|
|
||||||
cannot be loaded dynamically. */
|
|
||||||
char salamander_file[MAXIMUM_PATH];
|
char salamander_file[MAXIMUM_PATH];
|
||||||
char sram_dir[MAXIMUM_PATH];
|
char sram_dir[MAXIMUM_PATH];
|
||||||
char system_dir[MAXIMUM_PATH];
|
char system_dir[MAXIMUM_PATH];
|
||||||
|
@ -49,12 +49,6 @@ static int rarch_main_init_wrap(const struct rarch_main_wrap *args)
|
|||||||
argv[argc++] = strdup(args->config_path);
|
argv[argc++] = strdup(args->config_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args->libretro_path)
|
|
||||||
{
|
|
||||||
argv[argc++] = strdup("-L");
|
|
||||||
argv[argc++] = strdup(args->libretro_path);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args->verbose)
|
if (args->verbose)
|
||||||
argv[argc++] = strdup("-v");
|
argv[argc++] = strdup("-v");
|
||||||
|
|
||||||
@ -77,7 +71,7 @@ static int rarch_main_init_wrap(const struct rarch_main_wrap *args)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool rarch_startup (const char * config_path, const char * libretro_path)
|
bool rarch_startup (const char * config_path)
|
||||||
{
|
{
|
||||||
bool retval = false;
|
bool retval = false;
|
||||||
|
|
||||||
@ -90,7 +84,6 @@ bool rarch_startup (const char * config_path, const char * libretro_path)
|
|||||||
|
|
||||||
args.verbose = g_extern.verbose;
|
args.verbose = g_extern.verbose;
|
||||||
args.config_path = config_path;
|
args.config_path = config_path;
|
||||||
args.libretro_path = libretro_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;
|
||||||
|
@ -23,10 +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;
|
||||||
const char *libretro_path;
|
|
||||||
bool verbose;
|
bool verbose;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool rarch_startup (const char *config_path, const char *libretro_path);
|
bool rarch_startup (const char * config_path);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -433,7 +433,6 @@ static void get_environment_settings(void)
|
|||||||
snprintf(default_paths.input_presets_dir, sizeof(default_paths.input_presets_dir), "%s/input", default_paths.port_dir);
|
snprintf(default_paths.input_presets_dir, sizeof(default_paths.input_presets_dir), "%s/input", default_paths.port_dir);
|
||||||
strlcpy(default_paths.executable_extension, ".dol", sizeof(default_paths.executable_extension));
|
strlcpy(default_paths.executable_extension, ".dol", sizeof(default_paths.executable_extension));
|
||||||
strlcpy(default_paths.salamander_file, "boot.dol", sizeof(default_paths.salamander_file));
|
strlcpy(default_paths.salamander_file, "boot.dol", sizeof(default_paths.salamander_file));
|
||||||
default_paths.libretro_path = NULL:
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAKE_FILE(x) {\
|
#define MAKE_FILE(x) {\
|
||||||
@ -559,7 +558,7 @@ int main(int argc, char *argv[])
|
|||||||
rarch_render_cached_frame();
|
rarch_render_cached_frame();
|
||||||
gx->menu_render = false;
|
gx->menu_render = false;
|
||||||
|
|
||||||
rarch_startup(default_paths.config_file, default_paths.libretro_path);
|
rarch_startup(default_paths.config_file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -588,7 +587,7 @@ begin_loop:
|
|||||||
menu_loop();
|
menu_loop();
|
||||||
|
|
||||||
if (g_console.mode_switch != MODE_EXIT)
|
if (g_console.mode_switch != MODE_EXIT)
|
||||||
rarch_startup(default_paths.config_file, default_paths.libretro_path);
|
rarch_startup(default_paths.config_file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto begin_shutdown;
|
goto begin_shutdown;
|
||||||
|
@ -225,7 +225,6 @@ static void get_environment_settings(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
snprintf(default_paths.config_file, sizeof(default_paths.config_file), "%s/retroarch.cfg", default_paths.port_dir);
|
snprintf(default_paths.config_file, sizeof(default_paths.config_file), "%s/retroarch.cfg", default_paths.port_dir);
|
||||||
snprintf(default_paths.salamander_file, sizeof(default_paths.salamander_file), "EBOOT.BIN");
|
snprintf(default_paths.salamander_file, sizeof(default_paths.salamander_file), "EBOOT.BIN");
|
||||||
default_paths.libretro_path = NULL:
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_extern.verbose = false;
|
g_extern.verbose = false;
|
||||||
@ -331,7 +330,7 @@ int main(int argc, char *argv[])
|
|||||||
RARCH_LOG("Started from multiMAN, will auto-start game.\n");
|
RARCH_LOG("Started from multiMAN, will auto-start game.\n");
|
||||||
strlcpy(g_console.rom_path, argv[1], sizeof(g_console.rom_path));
|
strlcpy(g_console.rom_path, argv[1], sizeof(g_console.rom_path));
|
||||||
rarch_settings_change(S_START_RARCH);
|
rarch_settings_change(S_START_RARCH);
|
||||||
rarch_startup(default_paths.config_file, default_paths.libretro_path);
|
rarch_startup(default_paths.config_file);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
@ -356,7 +355,7 @@ begin_loop:
|
|||||||
menu_loop();
|
menu_loop();
|
||||||
|
|
||||||
if (g_console.mode_switch != MODE_EXIT)
|
if (g_console.mode_switch != MODE_EXIT)
|
||||||
rarch_startup(default_paths.config_file, default_paths.libretro_path);
|
rarch_startup(default_paths.config_file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto begin_shutdown;
|
goto begin_shutdown;
|
||||||
|
@ -127,7 +127,6 @@ static void get_environment_settings (void)
|
|||||||
strlcpy(default_paths.filebrowser_startup_dir, "game:", sizeof(default_paths.filebrowser_startup_dir));
|
strlcpy(default_paths.filebrowser_startup_dir, "game:", sizeof(default_paths.filebrowser_startup_dir));
|
||||||
snprintf(default_paths.salamander_file, sizeof(default_paths.salamander_file), "default.xex");
|
snprintf(default_paths.salamander_file, sizeof(default_paths.salamander_file), "default.xex");
|
||||||
#endif
|
#endif
|
||||||
default_paths.libretro_path = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void system_init(void)
|
static void system_init(void)
|
||||||
@ -202,7 +201,7 @@ begin_loop:
|
|||||||
menu_loop();
|
menu_loop();
|
||||||
|
|
||||||
if (g_console.mode_switch != MODE_EXIT)
|
if (g_console.mode_switch != MODE_EXIT)
|
||||||
rarch_startup(default_paths.config_file, default_paths.libretro_path);
|
rarch_startup(default_paths.config_file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto begin_shutdown;
|
goto begin_shutdown;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user