Merge pull request #351 from GabrielBRDeveloper/ui

Pandroid: UI
This commit is contained in:
wheremyfoodat 2023-12-26 20:49:20 +02:00 committed by GitHub
commit dc32e9a563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 2680 additions and 203 deletions

View file

@ -6,6 +6,10 @@
#include "loader/ncch.hpp"
#include "memory.hpp"
#ifdef PANDA3DS_FRONTEND_PANDROID
#include "jni_driver.hpp"
#endif
#include <iostream>
bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSInfo &info) {
@ -255,6 +259,11 @@ bool NCCH::parseSMDH(const std::vector<u8>& smdh) {
return false;
}
// In the Android version, notify the application that we're loading an SMDH file, to extract data for the title list
#ifdef PANDA3DS_FRONTEND_PANDROID
Pandroid::onSmdhLoaded(smdh);
#endif
// Bitmask showing which regions are allowed.
// https://www.3dbrew.org/wiki/SMDH#Region_Lockout
const u32 regionMasks = *(u32*)&smdh[0x2018];