mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-05 06:42:57 +12:00
commit
dc32e9a563
74 changed files with 2680 additions and 203 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue