Use CMPTLaunchMenu to launch the vWii menu

This commit is contained in:
GaryOderNichts 2021-12-29 15:10:04 +01:00
parent 772fd0130d
commit af3a589a97

View File

@ -237,12 +237,19 @@ static void launchvWiiTitle(uint32_t titleId_low, uint32_t titleId_high){
CMPTGetDataSize(&dataSize); CMPTGetDataSize(&dataSize);
void* dataBuffer = memalign(0x40, dataSize); void* dataBuffer = memalign(0x40, dataSize);
CMPTLaunchTitle(dataBuffer, dataSize, titleId_low, titleId_high);
if (titleId_low == 0 && titleId_high == 0) {
CMPTLaunchMenu(dataBuffer, dataSize);
}
else {
CMPTLaunchTitle(dataBuffer, dataSize, titleId_low, titleId_high);
}
free(dataBuffer); free(dataBuffer);
} }
void bootvWiiMenu(void){ void bootvWiiMenu(void){
launchvWiiTitle(0x00000001, 0x00000002); launchvWiiTitle(0, 0);
} }
void bootHomebrewChannel(void){ void bootHomebrewChannel(void){