Homebrew [DEV] Wad Manager MOD

RiderFx3

Well-Known Member
OP
Newcomer
Joined
Mar 8, 2009
Messages
59
Trophies
0
XP
155
Country
France
[RESOLVED]​

Hi everybody,

I need help for my MOD of WAd Manager: Ultimate Installer

I would like reboot the wii when I press HOME > OK it works fine !
I would like return to HBC when I press 2 > NOT OK when i launch the homebrew with a forwarder.

If i launch the homebrew with HBC, it return to HBC correctly when I press 2.

I would like that the user can choose to reboot, or to launch HBC, few imports that the way is launched the homebrew at the begining (Forwarder or HBC)

There is the code for return to HBC in SYS.C:
Code:
void GoToHBC(void)
{
ÂÂÂÂu32 *stub = (u32 *)0x80001800;

ÂÂÂÂ/* Go to Homebrew Channel */
ÂÂÂÂif (*stub)
ÂÂÂÂÂÂÂÂexit(0);
}

And there is the code for the button 2:
Code:
/* 2 button */
ÂÂÂÂÂÂÂÂif (buttons & WPAD_BUTTON_2)
ÂÂÂÂÂÂÂÂÂÂÂÂGoToHBC();

Anyone can help me to call HBC when the homebrew is launch with a forwarder?

Excuse me for my bad english
biggrin.gif
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
you cant just blindly exit to 0x80001800 if there happens to be something there. check it for the stub signature STUBBHAXX. and then make sure you have something that happens after the

if (buttons & WPAD_BUTTON_2)
GoToHBC();

fails.

the system menu wont magically start itself.
and if you want to go to HBC without using the reload stub, use the WII_Launch...() stuff in libogc
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
0
Website
Visit site
XP
999
Country
libogc's existing behaviour for exit():
- check if the reloader stub exists, if so run it
- otherwise launch the system menu

If you want to unconditionally jump to HBC and make your program future proof against any future HBC title id changes at the same time, you have to do the following:
- get a list of all channels on the wii
- check their TMDviews one at a time and find one that uses "HB" for the group id
- launch that channel using WII_Launch (or just use the appropriate /dev/es ioctlv)
 

RiderFx3

Well-Known Member
OP
Newcomer
Joined
Mar 8, 2009
Messages
59
Trophies
0
XP
155
Country
France
Thanks Guys !

I don't want "Return" to HBC, because the homebrew is launched with forwarder.

I want "launch" HBC directly.

I try to write:

#define HBC_IOS 58


/* 2 button */
if (buttons & WPAD_BUTTON_2)
__IOS_LaunchNewIOS(HBC_IOS);

But the homebrew freeze.

Code:
- get a list of all channels on the wii
- check their TMDviews one at a time and find one that uses "HB" for the group id
- launch that channel using WII_Launch (or just use the appropriate /dev/es ioctlv)

How i can use Wii launch, and wich software can list all of my channels for find the TMD of HBC.
When i got the TMD of HBC, wich code i do write exaclty ? I modify the page "sys.c" and "wadmanager.c"

Sorry but im noob in dev ...
frown.gif
 

RiderFx3

Well-Known Member
OP
Newcomer
Joined
Mar 8, 2009
Messages
59
Trophies
0
XP
155
Country
France
Thanks for helping!

I try this:
CODE#define TITLE_ID(x,y)ÂÂÂÂÂÂÂÂ(((u64)(x) > 32))
#define TITLE_LOW(x)ÂÂÂÂÂÂÂÂ((u32)(x))

With this:
CODEvoid GoToHBC(void)
{
ÂÂÂÂ/* Go to Homebrew Channel */
ÂÂÂÂWII_Initialize();
ÂÂÂÂ(WII_LaunchTitle(HBC_108)
 

RiderFx3

Well-Known Member
OP
Newcomer
Joined
Mar 8, 2009
Messages
59
Trophies
0
XP
155
Country
France
It's OKAY i fix it !!!!
biggrin.gif
I'm Happy !


in SYS.C:
CODE#define TITLE_ID(x,y)ÂÂÂÂÂÂÂÂ(((u64)(x) > 32))
#define TITLE_LOW(x)ÂÂÂÂÂÂÂÂ((u32)(x))
Code:
void GoToHBC(void)
{
ÂÂÂÂ/* Go to Homebrew Channel */
ÂÂÂÂWII_Initialize();
ÂÂÂÂWII_LaunchTitle(TITLE_ID(0x00010001,0xAF1BF516));
ÂÂÂÂÂÂÂÂif(WII_LaunchTitle(TITLE_ID(0x00010001,0x48415858)));
ÂÂÂÂÂÂÂÂÂÂÂÂif(WII_LaunchTitle(TITLE_ID(0x00010001,0x4A4F4449)));
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂSYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
}


and in main.c:

Code:
/* 2 button */
ÂÂÂÂÂÂÂÂif (buttons & WPAD_BUTTON_2)
ÂÂÂÂÂÂÂÂÂÂÂÂGoToHBC();


Thanks all !!!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=_PiiXM51oBo