Merge pull request #5663 from leoetlino/import-fix
IOS/ES: Fix import sanity check
This commit is contained in:
commit
1bd177561b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue