dimok789 / loadiine_gx2

A WiiU SD Loader with GX2 GUI
GNU General Public License v3.0
287 stars 78 forks source link

Issue with sndcore2 on 5.1.0 #118

Open Recchi opened 8 years ago

Recchi commented 8 years ago

Hello! I'm having issues with Loadiine GX2 on fw. 5.1.0. Almost all of my games blackscreen with GX2 0.2 and 0.3, even though they work fine with the old Lodiine V4.0 (the 5.1.0 port, https://gbatemp.net/threads/loadiine-v4-for-5-0-0-5-1-0-wiiu.406324/) and also from disc. The only game that also works with Loadiine GX2 is Mario Kart 8.

Now I've made some logs while launching the games and the non-working ones have one thing in common: "OSDynLoad_Acquire: sndcore2 result: -1". That can't mean anything good. I'm attaching 5 logs - 2 logs on Mario Kart 8 (Loadiine V4.0 and Loadiine GX2 0.3, both working), 2 logs of Pikmin 3 (Loadiine V4.0 and Loadiine GX2 0.3, only V4.0 works) and 1 log of Hyrule Warriors (Loadiine GX2 0.3, not working). Note: Hyrule Warriors also work with Loadiine V4.0, but I'm not attaching the log.

Also note that I'm using Mii Maker mode for launching in both Loadiine 4.0 and Loadiine GX2, because I don't have SSBU. Also tried a few games in Wii Karaoke U with the same results.

Is this an issue with Loadiine GX2 or is the problem at my end? Could somebody please look into this? Thank you very much in advance and keep up the good work.

_Sorry for opening a new issue, but I achieved new progress and my previous issue (https://github.com/dimok789/loadiine_gx2/issues/106) is spammed with irrelevant info - and I did not want this to be lost in the masses._

MK8-L40-Working.txt MK8-LGX2-Working.txt Pikmin3-L40-Working.txt Pikmin3-LGX2-Not Working.txt Hyrule Warriors-LGX2-Not Working.txt

z0mb3 commented 7 years ago

I had the same issue with 5.0.0. The reason for me was the address defined for OSDynLoad_Acquire in libwiiu (read here: https://github.com/wiiudev/libwiiu/issues/38). If someone compiled the kexploit with an old libwiiu there would be the -1 result. I've double checked the addresses for 5.1.0 from coreinit.rpl and they are the same as in 5.0.0. These addresses are stored within the kexploit binary be sure to use one compiled for 5.0.0/5.1.0.

define OSDynLoadAcquire ((void ()(char_ rpl, unsigned int _handle))0x01029F70)

define OSDynLoadFindExport ((void ()(unsigned int handle, int isdata, char _symbol, void *address))0x0102B3E4)

define OSFatal ((void (_)(char* msg))0x01030ECC)

define __ossnprintf ((int()(char_ s, int n, const char * format, ... ))0x0102ECE0)

If the flag VER=510 is used while compiling within libwiiu I can't see addresses defined for 510 in https://github.com/wiiudev/libwiiu/blob/7c5395f2fd518af3ab2320cff64c78a5112323f6/libwiiu/src/coreinit.h

maybe switch line 26 from

elif VER==500

to

elif (VER==500) | (VER==510)

and ensure the addresses from 500 are used for 510

But maybe I'm wrong and the problem is anywhere else. Anyway 5.5.1 works pretty well ;)