(WIN32/RARCH_CONSOLE) Fixes install_libretro_core

This commit is contained in:
twinaphex 2013-01-10 06:05:38 +01:00
parent 3dee70675f
commit d16d58b095
2 changed files with 8 additions and 5 deletions

View File

@ -240,14 +240,17 @@ int main(int argc, char *argv[])
char core_exe_path[PATH_MAX];
char path_prefix[PATH_MAX];
const char *extension = default_paths.executable_extension;
#if defined(_XBOX1)
snprintf(path_prefix, sizeof(path_prefix), "D:\\");
char slash;
#if defined(_WIN32)
slash = '\\';
#else
snprintf(path_prefix, sizeof(path_prefix), "%s/", default_paths.core_dir);
slash = '/';
#endif
snprintf(path_prefix, sizeof(path_prefix), "%s%c", default_paths.core_dir, slash);
snprintf(core_exe_path, sizeof(core_exe_path), "%sCORE%s", path_prefix, extension);
RARCH_LOG("core_exe_path: %s\n", core_exe_path);
if (path_file_exists(core_exe_path))
{
if (install_libretro_core(core_exe_path, path_prefix, path_prefix,

View File

@ -333,7 +333,7 @@ static void get_environment_settings(int argc, char *argv[])
#ifdef HAVE_HDD_CACHE_PARTITION
strlcpy(default_paths.cache_dir, "cache:\\", sizeof(default_paths.cache_dir));
#endif
strlcpy(default_paths.core_dir, "game:\\", sizeof(default_paths.core_dir));
strlcpy(default_paths.core_dir, "game:", sizeof(default_paths.core_dir));
strlcpy(default_paths.filesystem_root_dir, "game:\\", sizeof(default_paths.filesystem_root_dir));
strlcpy(default_paths.screenshots_dir, "game:", sizeof(default_paths.screenshots_dir));
#ifdef IS_SALAMANDER