mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Simplify rarch_config_load
This commit is contained in:
parent
cd76a2c3b3
commit
c6cf258b42
@ -45,14 +45,7 @@ JNIEXPORT jint JNICALL JNI_OnLoad( JavaVM *vm, void *pvt)
|
||||
config_set_defaults();
|
||||
input_null.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;
|
||||
const input_driver_t *input = &input_ps3;
|
||||
|
||||
char core_exe_path[1024];
|
||||
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
|
||||
const input_driver_t *input = &input_null;
|
||||
|
||||
bool find_libretro_file = false;
|
||||
|
||||
@ -62,7 +55,7 @@ JNIEXPORT jint JNICALL JNI_OnLoad( JavaVM *vm, void *pvt)
|
||||
|
||||
rarch_settings_set_default();
|
||||
//rarch_input_set_controls_default(input);
|
||||
rarch_config_load(default_paths.config_file, path_prefix, extension, find_libretro_file);
|
||||
rarch_config_load(default_paths.config_file, find_libretro_file);
|
||||
init_libretro_sym();
|
||||
|
||||
input_null.post_init();
|
||||
|
@ -3,6 +3,7 @@ LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
APP_OPTIM := debug
|
||||
|
||||
LOCAL_MODULE := retroarch
|
||||
LOCAL_SRC_FILES = ../../console/griffin/griffin.c ../../console/rzlib/rzlib.c ../bifrost.c
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "rarch_console_config.h"
|
||||
|
||||
void rarch_config_load(const char * conf_name, const char * libretro_dir_path, const char * exe_ext, bool upgrade_core_succeeded)
|
||||
void rarch_config_load(const char *conf_name, bool upgrade_core_succeeded)
|
||||
{
|
||||
char libretro_path_tmp[PATH_MAX];
|
||||
|
||||
|
@ -24,7 +24,7 @@ enum
|
||||
INPUT_PRESET_FILE
|
||||
};
|
||||
|
||||
void rarch_config_load(const char * conf_name, const char * libretro_dir_path, const char * exe_ext, bool upgrade_core_succeeded);
|
||||
void rarch_config_save(const char * conf_name);
|
||||
void rarch_config_load(const char *conf_name, bool upgrade_core_succeeded);
|
||||
void rarch_config_save(const char *conf_name);
|
||||
|
||||
#endif
|
||||
|
@ -531,7 +531,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
rarch_settings_set_default();
|
||||
rarch_input_set_controls_default(input);
|
||||
rarch_config_load(default_paths.config_file, path_prefix, extension, find_libretro_file);
|
||||
rarch_config_load(default_paths.config_file, find_libretro_file);
|
||||
|
||||
char core_name[64];
|
||||
rarch_console_name_from_id(core_name, sizeof(core_name));
|
||||
|
@ -288,7 +288,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
rarch_settings_set_default();
|
||||
rarch_input_set_controls_default(input);
|
||||
rarch_config_load(default_paths.config_file, path_prefix, extension, find_libretro_file);
|
||||
rarch_config_load(default_paths.config_file, find_libretro_file);
|
||||
init_libretro_sym();
|
||||
|
||||
input_ps3.post_init();
|
||||
|
@ -164,7 +164,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
rarch_settings_set_default();
|
||||
rarch_input_set_controls_default(input);
|
||||
rarch_config_load(default_paths.config_file, path_prefix, extension, find_libretro_file);
|
||||
rarch_config_load(default_paths.config_file, find_libretro_file);
|
||||
init_libretro_sym();
|
||||
|
||||
input_xinput.post_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user