mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
apple: extract bundled assets.zip based on bundle version (#17231)
This commit is contained in:
parent
14a0c186f3
commit
d642e38423
@ -464,8 +464,9 @@ static void frontend_darwin_get_env(int *argc, char *argv[],
|
||||
settings->paths.bundle_assets_dst,
|
||||
application_data
|
||||
);
|
||||
/* TODO/FIXME: Just hardcode this for now */
|
||||
configuration_set_uint(settings, settings->uints.bundle_assets_extract_version_current, 1);
|
||||
NSString *bundleVersionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
|
||||
NSInteger bundleVersion = [bundleVersionString integerValue];
|
||||
configuration_set_uint(settings, settings->uints.bundle_assets_extract_version_current, (uint)bundleVersion);
|
||||
}
|
||||
|
||||
CFTemporaryDirectory(temp_dir, sizeof(temp_dir));
|
||||
|
Loading…
x
Reference in New Issue
Block a user