mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Silence unused variable warning
This commit is contained in:
parent
5113aa164a
commit
08bca9017e
@ -321,7 +321,6 @@ static void frontend_darwin_get_environment_settings(int *argc, char *argv[],
|
|||||||
char bundle_path_buf[PATH_MAX_LENGTH] = {0};
|
char bundle_path_buf[PATH_MAX_LENGTH] = {0};
|
||||||
char home_dir_buf[PATH_MAX_LENGTH] = {0};
|
char home_dir_buf[PATH_MAX_LENGTH] = {0};
|
||||||
CFBundleRef bundle = CFBundleGetMainBundle();
|
CFBundleRef bundle = CFBundleGetMainBundle();
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
|
|
||||||
(void)temp_dir;
|
(void)temp_dir;
|
||||||
|
|
||||||
@ -379,24 +378,25 @@ static void frontend_darwin_get_environment_settings(int *argc, char *argv[],
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
|
char assets_zip_path[PATH_MAX_LENGTH];
|
||||||
int major, minor;
|
int major, minor;
|
||||||
|
|
||||||
get_ios_version(&major, &minor);
|
get_ios_version(&major, &minor);
|
||||||
if (major > 8)
|
if (major > 8)
|
||||||
strlcpy(g_defaults.path.buildbot_server_url, "http://buildbot.libretro.com/nightly/apple/ios9/latest/", sizeof(g_defaults.path.buildbot_server_url));
|
strlcpy(g_defaults.path.buildbot_server_url, "http://buildbot.libretro.com/nightly/apple/ios9/latest/", sizeof(g_defaults.path.buildbot_server_url));
|
||||||
|
|
||||||
#if 1
|
|
||||||
char assets_zip_path[PATH_MAX_LENGTH];
|
|
||||||
fill_pathname_join(assets_zip_path, bundle_path_buf, "assets.zip", sizeof(assets_zip_path));
|
fill_pathname_join(assets_zip_path, bundle_path_buf, "assets.zip", sizeof(assets_zip_path));
|
||||||
|
|
||||||
if (path_file_exists(assets_zip_path))
|
if (path_file_exists(assets_zip_path))
|
||||||
{
|
{
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
RARCH_LOG("Assets ZIP found at [%s], setting up bundle assets extraction...\n", assets_zip_path);
|
RARCH_LOG("Assets ZIP found at [%s], setting up bundle assets extraction...\n", assets_zip_path);
|
||||||
RARCH_LOG("Extraction dir will be: %s\n", home_dir_buf);
|
RARCH_LOG("Extraction dir will be: %s\n", home_dir_buf);
|
||||||
strlcpy(settings->bundle_assets_src_path, assets_zip_path, sizeof(settings->bundle_assets_src_path));
|
strlcpy(settings->bundle_assets_src_path, assets_zip_path, sizeof(settings->bundle_assets_src_path));
|
||||||
strlcpy(settings->bundle_assets_dst_path, home_dir_buf, sizeof(settings->bundle_assets_dst_path));
|
strlcpy(settings->bundle_assets_dst_path, home_dir_buf, sizeof(settings->bundle_assets_dst_path));
|
||||||
settings->bundle_assets_extract_version_current = 130; /* TODO/FIXME: Just hardcode this for now */
|
settings->bundle_assets_extract_version_current = 130; /* TODO/FIXME: Just hardcode this for now */
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CFTemporaryDirectory(temp_dir, sizeof(temp_dir));
|
CFTemporaryDirectory(temp_dir, sizeof(temp_dir));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user