mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 02:08:16 +00:00
(RARCH_CONSOLE) Cleanup to frontend to do with LIBRETRO_MANAGEMENT
ifdef
This commit is contained in:
parent
46a62a44fc
commit
58d3aa8b72
@ -506,19 +506,17 @@ int main(int argc, char *argv[])
|
||||
gx_video_t *gx = (gx_video_t*)driver.video_data;
|
||||
gx->menu_data = (uint32_t *) menu_framebuf;
|
||||
|
||||
char tmp_path[PATH_MAX];
|
||||
const char *extension = default_paths.executable_extension;
|
||||
snprintf(tmp_path, sizeof(tmp_path), "%s/", default_paths.core_dir);
|
||||
const char *path_prefix = tmp_path;
|
||||
|
||||
char core_exe_path[1024];
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
rarch_settings_set_default();
|
||||
rarch_input_set_controls_default(driver.input);
|
||||
rarch_config_load();
|
||||
|
||||
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
||||
char core_exe_path[PATH_MAX];
|
||||
char path_prefix[PATH_MAX];
|
||||
const char *extension = default_paths.executable_extension;
|
||||
snprintf(path_prefix, sizeof(path_prefix), "%s/", default_paths.core_dir);
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
if (path_file_exists(core_exe_path))
|
||||
{
|
||||
if (rarch_libretro_core_install(core_exe_path, path_prefix, path_prefix,
|
||||
|
@ -270,19 +270,18 @@ int main(int argc, char *argv[])
|
||||
init_drivers_pre();
|
||||
driver.input->init();
|
||||
|
||||
char tmp_path[PATH_MAX];
|
||||
snprintf(tmp_path, sizeof(tmp_path), "%s/", default_paths.core_dir);
|
||||
const char *path_prefix = tmp_path;
|
||||
const char *extension = default_paths.executable_extension;
|
||||
|
||||
char core_exe_path[1024];
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
rarch_settings_set_default();
|
||||
rarch_input_set_controls_default(driver.input);
|
||||
rarch_config_load();
|
||||
|
||||
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
||||
char core_exe_path[PATH_MAX];
|
||||
char path_prefix[PATH_MAX];
|
||||
const char *extension = default_paths.executable_extension;
|
||||
snprintf(path_prefix, sizeof(path_prefix), "%s/", default_paths.core_dir);
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
|
||||
if (path_file_exists(core_exe_path))
|
||||
{
|
||||
if (rarch_libretro_core_install(core_exe_path, path_prefix, path_prefix,
|
||||
|
@ -131,19 +131,17 @@ int main(int argc, char *argv[])
|
||||
init_drivers_pre();
|
||||
driver.input->init();
|
||||
|
||||
char tmp_path[PATH_MAX];
|
||||
snprintf(tmp_path, sizeof(tmp_path), "%s/", default_paths.core_dir);
|
||||
const char *path_prefix = tmp_path;
|
||||
const char *extension = default_paths.executable_extension;
|
||||
|
||||
char core_exe_path[1024];
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
rarch_settings_set_default();
|
||||
rarch_input_set_controls_default(input);
|
||||
rarch_config_load();
|
||||
|
||||
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
||||
char core_exe_path[PATH_MAX];
|
||||
char path_prefix[PATH_MAX];
|
||||
const char *extension = default_paths.executable_extension;
|
||||
snprintf(path_prefix, sizeof(path_prefix), "%s/", default_paths.core_dir);
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
if (path_file_exists(core_exe_path))
|
||||
{
|
||||
if (rarch_libretro_core_install(core_exe_path, path_prefix, path_prefix,
|
||||
|
@ -147,22 +147,21 @@ int main(int argc, char *argv[])
|
||||
init_drivers_pre();
|
||||
driver.input->init();
|
||||
|
||||
#ifdef _XBOX1
|
||||
char path_prefix[256];
|
||||
snprintf(path_prefix, sizeof(path_prefix), "D:\\");
|
||||
#else
|
||||
const char *path_prefix = default_paths.filesystem_root_dir;
|
||||
#endif
|
||||
const char *extension = default_paths.executable_extension;
|
||||
|
||||
char core_exe_path[1024];
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
rarch_settings_set_default();
|
||||
rarch_input_set_controls_default(driver.input);
|
||||
rarch_config_load();
|
||||
|
||||
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
||||
char core_exe_path[PATH_MAX];
|
||||
char path_prefix[PATH_MAX];
|
||||
const char *extension = default_paths.executable_extension;
|
||||
#ifdef _XBOX1
|
||||
snprintf(path_prefix, sizeof(path_prefix), "D:\\");
|
||||
#else
|
||||
snprintf(path_prefix, sizeof(path_prefix), default_paths.filesystem_root_dir);
|
||||
#endif
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
|
||||
if (path_file_exists(core_exe_path))
|
||||
{
|
||||
if (rarch_libretro_core_install(core_exe_path, path_prefix, path_prefix,
|
||||
|
Loading…
Reference in New Issue
Block a user