diff --git a/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj b/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj index 1f9ffc0353..91b24a81ec 100644 --- a/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj +++ b/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj @@ -81,27 +81,27 @@ true - $(OutDir)$(ProjectName).xex + $(OutDir)default.xex true - $(OutDir)$(ProjectName).xex + $(OutDir)default.xex false - $(OutDir)$(ProjectName).xex + $(OutDir)default.xex false - $(OutDir)$(ProjectName).xex + $(OutDir)default.xex false - $(OutDir)$(ProjectName).xex + $(OutDir)default.xex false - $(OutDir)$(ProjectName).xex + $(OutDir)default.xex @@ -294,4 +294,4 @@ - + \ No newline at end of file diff --git a/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj.filters b/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj.filters index 5f0c3cdeca..2ef6232f7a 100644 --- a/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj.filters +++ b/msvc/RetroArch-360-Salamander/RetroArch-Salamander.vcxproj.filters @@ -20,9 +20,6 @@ - - Source Files - Source Files\conf @@ -38,5 +35,8 @@ Source Files\console + + Source Files + \ No newline at end of file diff --git a/xdk/salamander/main.c b/xdk/salamander/main.c index 6beb1c2000..43eec2aede 100644 --- a/xdk/salamander/main.c +++ b/xdk/salamander/main.c @@ -52,7 +52,7 @@ static void find_and_set_first_file(void) char first_file[PATH_MAX]; rarch_manage_libretro_set_first_file(first_file, sizeof(first_file), #if defined(_XBOX360) - "game:\\", "xex" + "game:", "xex" #elif defined(_XBOX1) "D:", "xbe" #endif @@ -76,7 +76,7 @@ static void init_settings(void) char tmp_str[PATH_MAX]; bool config_file_exists = false; - if(path_file_exists(SYS_CONFIG_FILE)) + if(path_file_exists(default_paths.config_file)) config_file_exists = true; //try to find CORE executable @@ -97,7 +97,7 @@ static void init_settings(void) { if(config_file_exists) { - config_file_t * conf = config_file_new(SYS_CONFIG_FILE); + config_file_t * conf = config_file_new(default_paths.config_file); config_get_array(conf, "libretro_path", tmp_str, sizeof(tmp_str)); snprintf(libretro_path, sizeof(libretro_path), tmp_str); } @@ -158,11 +158,24 @@ static void get_environment_settings (void) break; } } +#endif - strlcpy(default_paths.salamander_file, "RetroArch-Salamander.xex", sizeof(default_paths.salamander_file)); -#elif defined(_XBOX1) - strlcpy(SYS_CONFIG_FILE, "D:\\retroarch.cfg", sizeof(SYS_CONFIG_FILE)); +#if defined(_XBOX1) + strlcpy(default_paths.core_dir, "D:", sizeof(default_paths.core_dir)); + strlcpy(default_paths.config_file, "D:\\retroarch.cfg", sizeof(default_paths.config_file)); + strlcpy(default_paths.system_dir, "D:\\system", sizeof(default_paths.system_dir)); + strlcpy(default_paths.filesystem_root_dir, "D:", sizeof(default_paths.filesystem_root_dir)); + strlcpy(default_paths.executable_extension, ".xbe", sizeof(default_paths.executable_extension)); + strlcpy(default_paths.filebrowser_startup_dir, "D:", sizeof(default_paths.filebrowser_startup_dir)); + strlcpy(default_paths.screenshots_dir, "D:\\screenshots", sizeof(default_paths.screenshots_dir)); strlcpy(default_paths.salamander_file, "default.xbe", sizeof(default_paths.salamander_file)); +#elif defined(_XBOX360) + strlcpy(default_paths.filesystem_root_dir, "game:\\", sizeof(default_paths.filesystem_root_dir)); + strlcpy(default_paths.screenshots_dir, "game:", sizeof(default_paths.screenshots_dir)); + strlcpy(default_paths.config_file, "game:\\retroarch.cfg", sizeof(default_paths.config_file)); + strlcpy(default_paths.system_dir, "game:\\system\\", sizeof(default_paths.system_dir)); + strlcpy(default_paths.executable_extension, ".xex", sizeof(default_paths.executable_extension)); + snprintf(default_paths.salamander_file, sizeof(default_paths.salamander_file), "default.xex"); #endif } @@ -193,4 +206,4 @@ int main(int argc, char *argv[]) rarch_console_exec(libretro_path); return 1; -} +} \ No newline at end of file