mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-06 23:19:57 +01:00
android: Fix 3dsx listing
This commit is contained in:
parent
aca8b45664
commit
4bf9161bcd
@ -31,8 +31,17 @@ GameInfoData* GetNewGameInfoData(const std::string& path) {
|
|||||||
std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(path);
|
std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(path);
|
||||||
u64 program_id = 0;
|
u64 program_id = 0;
|
||||||
bool is_encrypted = false;
|
bool is_encrypted = false;
|
||||||
|
Loader::ResultStatus result{};
|
||||||
|
if (loader) {
|
||||||
|
result = loader->ReadProgramId(program_id);
|
||||||
|
if (result == Loader::ResultStatus::ErrorNotImplemented) {
|
||||||
|
// This can happen for 3DSX and ELF files.
|
||||||
|
program_id = 0;
|
||||||
|
result = Loader::ResultStatus::Success;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!loader || loader->ReadProgramId(program_id) != Loader::ResultStatus::Success) {
|
if (!loader || result != Loader::ResultStatus::Success) {
|
||||||
GameInfoData* gid = new GameInfoData();
|
GameInfoData* gid = new GameInfoData();
|
||||||
memset(&gid->smdh, 0, sizeof(Loader::SMDH));
|
memset(&gid->smdh, 0, sizeof(Loader::SMDH));
|
||||||
return gid;
|
return gid;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user