mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-02 17:53:40 +00:00
(WIN32/RARCH_CONSOLE) Fixes install_libretro_core
This commit is contained in:
parent
3dee70675f
commit
d16d58b095
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user