Skip to content

Commit

Permalink
Merge pull request #5663 from leoetlino/import-fix
Browse files Browse the repository at this point in the history
IOS/ES: Fix import sanity check
  • Loading branch information
shuffle2 committed Jun 24, 2017
2 parents d715e74 + a3fdda1 commit 1bd1775
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Core/Core/IOS/ES/TitleManagement.cpp
Expand Up @@ -365,8 +365,10 @@ ReturnCode ES::ImportTitleDone(Context& context)
if (content.IsShared())
return shared_content_map.GetFilenameFromSHA1(content.sha1).has_value();

return File::Exists(Common::GetTitleContentPath(title_id, Common::FROM_SESSION_ROOT) +
StringFromFormat("%08x.app", content.id));
// Note: the import hasn't been finalised yet, so the whole title directory
// 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)
return ES_EINVAL;
Expand Down

0 comments on commit 1bd1775

Please sign in to comment.