From af3a589a9712186c2f71a26cc264feaad8138c54 Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:10:04 +0100 Subject: [PATCH] Use CMPTLaunchMenu to launch the vWii menu --- source/main.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index f7c68e2..6d8b6e5 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -237,12 +237,19 @@ static void launchvWiiTitle(uint32_t titleId_low, uint32_t titleId_high){ CMPTGetDataSize(&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); } void bootvWiiMenu(void){ - launchvWiiTitle(0x00000001, 0x00000002); + launchvWiiTitle(0, 0); } void bootHomebrewChannel(void){