mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
Merge pull request #5663 from leoetlino/import-fix
IOS/ES: Fix import sanity check
This commit is contained in:
@ -365,8 +365,10 @@ ReturnCode ES::ImportTitleDone(Context& context)
|
|||||||
if (content.IsShared())
|
if (content.IsShared())
|
||||||
return shared_content_map.GetFilenameFromSHA1(content.sha1).has_value();
|
return shared_content_map.GetFilenameFromSHA1(content.sha1).has_value();
|
||||||
|
|
||||||
return File::Exists(Common::GetTitleContentPath(title_id, Common::FROM_SESSION_ROOT) +
|
// Note: the import hasn't been finalised yet, so the whole title directory
|
||||||
StringFromFormat("%08x.app", content.id));
|
// is still in /import, not /title.
|
||||||
|
return File::Exists(Common::GetImportTitlePath(title_id, Common::FROM_SESSION_ROOT) +
|
||||||
|
StringFromFormat("/content/%08x.app", content.id));
|
||||||
});
|
});
|
||||||
if (!has_all_required_contents)
|
if (!has_all_required_contents)
|
||||||
return ES_EINVAL;
|
return ES_EINVAL;
|
||||||
|
Reference in New Issue
Block a user