mirror of
https://github.com/wiiu-env/WiiUPluginLoaderGUI.git
synced 2024-11-22 09:09:17 +01:00
Do memory mapping on default, remove some debug output and tests.
This commit is contained in:
parent
2fc11412f3
commit
14d4ab0b5c
11
src/main.cpp
11
src/main.cpp
@ -95,6 +95,10 @@ extern "C" int32_t Menu_Main(int32_t argc, char **argv) {
|
||||
init_kernel_syscalls();
|
||||
wups_init_kernel_syscalls();
|
||||
|
||||
if(!MemoryMapping::isMemoryMapped()) {
|
||||
MemoryMapping::setupMemoryMapping();
|
||||
}
|
||||
|
||||
gGameTitleID = OSGetTitleID();
|
||||
|
||||
int32_t result = 0;
|
||||
@ -129,12 +133,7 @@ extern "C" int32_t Menu_Main(int32_t argc, char **argv) {
|
||||
memoryRelease();
|
||||
CSettings::destroyInstance();
|
||||
PluginLoader::destroyInstance();
|
||||
}
|
||||
|
||||
if(result == APPLICATION_CLOSE_APPLY_MEMORY) {
|
||||
if(!MemoryMapping::isMemoryMapped()) {
|
||||
MemoryMapping::setupMemoryMapping();
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG_FUNCTION_LINE("Do relocations\n");
|
||||
@ -153,7 +152,7 @@ extern "C" int32_t Menu_Main(int32_t argc, char **argv) {
|
||||
if(MemoryMapping::isMemoryMapped()) {
|
||||
DEBUG_FUNCTION_LINE("Mapping was already done. Running %016llX\n",gGameTitleID);
|
||||
readAndPrintSegmentRegister(NULL,NULL);
|
||||
MemoryMapping::readTestValuesFromMemory();
|
||||
//MemoryMapping::readTestValuesFromMemory();
|
||||
} else {
|
||||
DEBUG_FUNCTION_LINE("<-----------------------------------------------------> \n");
|
||||
DEBUG_FUNCTION_LINE("<---------------- COPY PASTE ME START-----------------> \n");
|
||||
|
@ -349,10 +349,10 @@ void MemoryMapping::setupMemoryMapping() {
|
||||
|
||||
runOnAllCores(readAndPrintSegmentRegister,NULL,0,16,0x80000);
|
||||
|
||||
searchEmptyMemoryRegions();
|
||||
//searchEmptyMemoryRegions();
|
||||
|
||||
writeTestValuesToMemory();
|
||||
readTestValuesFromMemory();
|
||||
//writeTestValuesToMemory();
|
||||
//readTestValuesFromMemory();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user