• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 10 11 12 13 14 ... 117 Next »

Poweroff on loading the Wii menu
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Poweroff on loading the Wii menu
01-28-2020, 02:43 PM (This post was last modified: 01-28-2020, 03:22 PM by boomboompsh.)
#1
boomboompsh Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Jan 2020
So, I'm very lazy and don't want to get off the couch to use my mouse and keyboard to shut down dolphin. I thought that a clever solution to this would be to replace the system menu with an application that immediately turns off the wii. Unfortunately, most wad customizers don't let you change the upper 32 bits of the titleID, and changing them in a hex editor produces a file that won't install on dolphin. This was probably a really stupid idea in the first place, but if anyone could help me out with this it would be much appreciated. What I have specifically tried is:
Take the power-off channel from here:http://turdinc.kicks-ass.net/Msntv/ps2/wiiChannels.html
Open it in a hexeditor, search for the titleID "POFF" and then replace it with "0000000100000002" (in hex, not ascii like POFF was) in the two places it appears in the file.
Dolphin recognizes it as a wii menu wad and attempts to install it but fails with error "WAD installation failed: Could not import content 00000000.

So if anyone knows anything about modifying the wii menu or how wads work or why this is a really dumb project I should not have embarked on in the first place, please enlighten me. The next thing I'm going to try is injecting a DOL in a wii system menu wad. Which I really doubt will work, but hey, maybe it will, who knows.
Find
Reply
01-30-2020, 01:49 PM
#2
boomboompsh Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Jan 2020
I managed to get it installed, I wrote a little libwiisharp program for it. Unfortunately, the dol forwarder doesn't like *being* the wii menu, so it errors out and fails to shutdown the wii. Ah well, I guess there's more to do.
Find
Reply
01-31-2020, 03:34 AM (This post was last modified: 01-31-2020, 03:35 AM by DacoTaco.)
#3
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,134
Threads: 31
Joined: Mar 2009
can't you just write a program that shuts down the wii and use the tools of Priiloader to create the stuff you need to make your code run at startup of the wii menu?

priiloader has an installer that replaces system menu's booting application & has tools to make any dol binary into an app (wii nand bootable binary)


... or use priiloader in general to do what youre trying to do Smile
[Image: PeachSig.jpg]
[Image: 566286.png]
[Image: 2280403.png]
Website Find
Reply
02-02-2020, 06:47 AM
#4
boomboompsh Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Jan 2020
Well, I tried to install priiloader, but it doesn't seem to work, at least on my version of dolphin. It just gives a black screen. I used opendolboot to make a .app that shuts down the wii, but the wii complains if you replace the wii menu files with a custom .app. I feel like what I was doing earlier was really close to working. I can boot the poweroff wad that has had it's titleID modified from the dolphin menu, but if I use the home menu, it errors out with "GetTitleID returned -4352". I think that error could be avoided by packing the WAD in a different way, since the application itself never calls getTitleID, so it's probably an artifact from wADder.
Find
Reply
02-02-2020, 08:22 AM
#5
boomboompsh Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Jan 2020
It worked. I just used customizemii to inject the power-off dol into a mii channel wad and used my custom tool to set the titleID. Installed it and it works without a hitch. Now I just need to make a homebrew that doesn't show an obnoxious message when it turns your wii off, which means I have to set up a toolchain. Ah well, at least it's working.
Find
Reply
02-02-2020, 07:15 PM (This post was last modified: 02-02-2020, 07:22 PM by DacoTaco.)
#6
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,134
Threads: 31
Joined: Mar 2009
priiloader works in dolphin (i first dev in dolphin and then test on the wii if needed) , and we made the installer work with the latest dolphin earlier this week.
also, what is complaining about replacing wii menu files? cause thats what the installer does and what priiloader is ...


EDIT : also, devkitpro's devkitppc & libogc are easy to setup and start creating apps
[Image: PeachSig.jpg]
[Image: 566286.png]
[Image: 2280403.png]
Website Find
Reply
02-04-2020, 11:26 AM
#7
boomboompsh Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Jan 2020
It was complaining about me manually replacing the wii menu files with a .app file created from the power-off.dol I had. I'm not on the latest dolphin because I broke my super mario sunshine savefile in such a way that I can't save anymore and can only use savestates. The solution I came up with is working perfectly, so I won't be using priiloader for this, but I'll probably mess around with it later since it seems interesting.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode