mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-10 21:00:06 +00:00
Merge pull request #5130 from B3n30/warn_if_cia_contend_is_encrypted
Show an error if CIA contend is encrypted
This commit is contained in:
commit
026a63bcf7
5 changed files with 77 additions and 5 deletions
|
@ -46,13 +46,15 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign
|
|||
const bool is_dir = FileUtil::IsDirectory(physical_name);
|
||||
if (!is_dir && HasSupportedFileExtension(physical_name)) {
|
||||
std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(physical_name);
|
||||
if (!loader)
|
||||
if (!loader) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool executable = false;
|
||||
loader->IsExecutable(executable);
|
||||
if (!executable)
|
||||
const auto res = loader->IsExecutable(executable);
|
||||
if (!executable && res != Loader::ResultStatus::ErrorEncrypted) {
|
||||
return true;
|
||||
}
|
||||
|
||||
u64 program_id = 0;
|
||||
loader->ReadProgramId(program_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue