mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2025-04-26 03:51:35 +02:00
[Loader] Logging page table information when no memory was mapped.
This commit is contained in:
parent
38856c5916
commit
a500538584
@ -61,6 +61,8 @@
|
|||||||
static void ApplyPatchesAndCallHookStartingApp();
|
static void ApplyPatchesAndCallHookStartingApp();
|
||||||
static void RestorePatches();
|
static void RestorePatches();
|
||||||
s32 isInMiiMakerHBL();
|
s32 isInMiiMakerHBL();
|
||||||
|
void readAndPrintSegmentRegister(CThread *thread, void *arg);
|
||||||
|
|
||||||
|
|
||||||
extern "C" int Menu_Main(int argc, char **argv) {
|
extern "C" int Menu_Main(int argc, char **argv) {
|
||||||
if(gAppStatus == 2) {
|
if(gAppStatus == 2) {
|
||||||
@ -92,11 +94,6 @@ extern "C" int Menu_Main(int argc, char **argv) {
|
|||||||
|
|
||||||
gGameTitleID = OSGetTitleID();
|
gGameTitleID = OSGetTitleID();
|
||||||
|
|
||||||
if(MemoryMapping::isMemoryMapped()) {
|
|
||||||
DEBUG_FUNCTION_LINE("Mapping was already done.\n");
|
|
||||||
MemoryMapping::readTestValuesFromMemory();
|
|
||||||
}
|
|
||||||
|
|
||||||
s32 result = 0;
|
s32 result = 0;
|
||||||
|
|
||||||
//Reset everything when were going back to the Mii Maker
|
//Reset everything when were going back to the Mii Maker
|
||||||
@ -127,7 +124,7 @@ extern "C" int Menu_Main(int argc, char **argv) {
|
|||||||
PluginLoader::destroyInstance();
|
PluginLoader::destroyInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(result == APPLICATION_CLOSE_APPLY_MEMORY){
|
if(result == APPLICATION_CLOSE_APPLY_MEMORY) {
|
||||||
if(!MemoryMapping::isMemoryMapped()) {
|
if(!MemoryMapping::isMemoryMapped()) {
|
||||||
MemoryMapping::setupMemoryMapping();
|
MemoryMapping::setupMemoryMapping();
|
||||||
}
|
}
|
||||||
@ -137,6 +134,23 @@ extern "C" int Menu_Main(int argc, char **argv) {
|
|||||||
if(!isInMiiMakerHBL()) {
|
if(!isInMiiMakerHBL()) {
|
||||||
DEBUG_FUNCTION_LINE("Apply patches.\n");
|
DEBUG_FUNCTION_LINE("Apply patches.\n");
|
||||||
ApplyPatchesAndCallHookStartingApp();
|
ApplyPatchesAndCallHookStartingApp();
|
||||||
|
|
||||||
|
if(MemoryMapping::isMemoryMapped()) {
|
||||||
|
DEBUG_FUNCTION_LINE("Mapping was already done. Running %016llX\n",gGameTitleID);
|
||||||
|
readAndPrintSegmentRegister(NULL,NULL);
|
||||||
|
MemoryMapping::readTestValuesFromMemory();
|
||||||
|
} else {
|
||||||
|
DEBUG_FUNCTION_LINE("<-----------------------------------------------------> \n");
|
||||||
|
DEBUG_FUNCTION_LINE("<---------------- COPY PASTE ME START-----------------> \n");
|
||||||
|
DEBUG_FUNCTION_LINE("<-----------------------------------------------------> \n");
|
||||||
|
DEBUG_FUNCTION_LINE("Mapping was't done. Running %016llX\n",gGameTitleID);
|
||||||
|
readAndPrintSegmentRegister(NULL,NULL);
|
||||||
|
DEBUG_FUNCTION_LINE("<-----------------------------------------------------> \n");
|
||||||
|
DEBUG_FUNCTION_LINE("<----------------- COPY PASTE ME END -----------------> \n");
|
||||||
|
DEBUG_FUNCTION_LINE("<-----------------------------------------------------> \n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return EXIT_RELAUNCH_ON_LOAD;
|
return EXIT_RELAUNCH_ON_LOAD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user