devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
236 stars 52 forks source link

Add OSForceFullRelaunch() declaration #174

Closed LRFLEW closed 2 years ago

LRFLEW commented 2 years ago

This one is pretty simple. OSForceFullRelaunch() followed by SYSLaunchMenu() is a common function pairing from what I can tell. For example, the Haxchi installer calls this pair of functions just before closing if a title has been patched. SYSLaunchMenu() is already declared in include/sysapp/launch.h, so OSForceFullRelaunch() should probably be included as well.

I wasn't sure where best to add this function. I knew it should go somewhere in include/coreinit, but I couldn't find an appropriate file to add it to. In the end, I opted to add it to a new header file on its own for now, as that seemed like the best option. If there's a better place to put this, let me know and I can update this.

Maschell commented 2 years ago

I would propose coreinit/launch.h instead of relaunch.h as there as serveral other launch functions in coreinit.rpl e.g.

OSLaunchTitleByPathl
OSLaunchTitleByPathv
OSLaunchTitlel
OSLaunchTitlev
LRFLEW commented 2 years ago

That makes sense to me, so I went ahead and made the change. I didn't add those functions to it because I don't know what the function signatures should look like.