Hacking WiiFlow stub question

fledge68

Well-Known Member
OP
Member
Joined
Jan 30, 2012
Messages
2,391
Trophies
2
XP
4,577
Country
United States
Question for fellow Devs or anyone else who would know.
so i was looking at the code for the wiiflow stub found here - https://github.com/FIX94/open-wiiflow-mod/tree/WiiFlowStub
and was wondering in main.c if i change this line

#define TITLE_UPPER 0x57494948 (WIIH)

to some other channel ID then when apps or emus exit they will launch that channel?
or do i have to change more than just that line?

and what is this line for

#define TITLE_LOWER 0x00010008
 

GreyWolf

Well-Known Member
Member
Joined
Mar 2, 2015
Messages
5,401
Trophies
0
Age
53
XP
1,499
Country
United States
The TITLE_UPPER value is the channel's title ID and the TITLE_LOWER is the channel type. The data for it would go in nand://title/00010008/057494948 and nand://ticket/00010008/057494948. 00010008 is hidden channels. They don't appear on the system menu.

If you change the title ID and recompile it then WiiFlow will attempt to set the returnto address to WIIH but since it has a different value you'll either get a crash or return to the system menu when a title tries to go back to the loader.
 

fledge68

Well-Known Member
OP
Member
Joined
Jan 30, 2012
Messages
2,391
Trophies
2
XP
4,577
Country
United States
Thanks for replying. After examining wiiflow code i found that wiiflow puts that stub in memory and then when it launches a app or emu plugin and when you decide to exit that app or emu plugin it thinks its using the HBC stub to return to the homebrew channel but instead it uses the wiiflow stub which launches the hidden channel WIIH which is basically a forwarder with the argument "EMULATOR_MAGIC" set which wiiflow detects but does nothing with it. i thought Wii and nand games use the cios to set the return to channel.

i wanted to use wiiflow stub and mod it to launch my own forwarder that isn't hidden.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys