Homebrew Wii homebrew app - how to detect if it runs on Wii or vWii?

leseratte

Wiimmfi Team
OP
Member
Joined
Jun 2, 2012
Messages
453
Trophies
1
XP
1,859
Country
Germany
I have written a homebrew app which needs to behave different on Wii vs. on a vWii (WiiU).

To find out whether it runs on a Wii or a WiiU I'm currently checking the version of IOS58 - 5918,6175,6176 = Wii, 6432 = WiiU, other versions = cancel.

However sometimes there are people who report getting errors and investigating showed that they somehow had the WiiU IOS on their Wii.

Is there any reliable method a Wii homebrew can use to check if it runs on a Wii or a WiiU?
 

leseratte

Wiimmfi Team
OP
Member
Joined
Jun 2, 2012
Messages
453
Trophies
1
XP
1,859
Country
Germany
I know this topic is pretty old, but I have two more questions related to this:

- When this is run without HW_AHBPROT, it returns 0 on a WiiU as well. Is there any other code that doesn't need special access?
- Can I somehow detect whether I am running in the normal vWii or within an injected WiiU Wii VC game?
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
for vWii inject, I use different (unreliable) methods.

At boot, I just check the IOS slot (255) but that's not correct because you could use that slot on Wii/vWii mode too.
I also use the gamepad library (libWiiDRC) from Fix94, so if the gamepad is initialized I use it as better vWii checker. though, if the user disabled the use of gamepad for vWii inject I suppose it return false even if it's a VCWii. But most users use the VC Wii to get gamepad support.

there is probably a more reliable way to check vWii and injects.
I didn't know it required ahb with crediar's method as I always have it enabled.
 
Last edited by Cyan,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Lol rappers still promoting crypto