Hacking USB Loader GX

  • Thread starter Thread starter blackb0x
  • Start date Start date
  • Views Views 8,066,780
  • Replies Replies 30,226
  • Likes Likes 74
If anyone has problem to use r1218 (or other mod version) to download cheats code
(ocarina code) ,here is a different mod version to solve this issue.
Thank you for showing it's working.
I tried and failed to add that lib :(
Sorry, but I would like you to help me understand what I'm doing wrong.

where did you put it? in devkitpro/portlib/ folder? which files? (you didn't include them in your sources, it's better to add .h and .a into /libs/libcurl/ folder so every other users can compile it, or provide them in zip to add to portlib)
When I use only libcurl, it asks for /sys/socket.h
if I add it, it conflicts with libogc/includes/network.h
Code:
c:/devkitPro/portlibs/ppc/include/sys/socket.h:26:8: error: redefinition of 'struct sockaddr'
c:/devkitPro/libogc/include/network.h:224:8: error: previous definition of 'struct sockaddr'

did you have to edit all the libraries to resolve conflicts?

edit:
I removed redefinition of sockadd and linge, replaced shutdown by Shutdown in 10 existing files....
That's not the best way to add a library in my opinion, requiring to edit existing sources everytime you add one.





Are there any updates to have Nintendont to work from USB?
Did you check nintendont thread?
USB is possible for few weeks now, both standalone and in USBloaders.
 
Thank you for showing it's working.
I tried and failed to add that lib :(
Sorry, but I would like you to help me understand what I'm doing wrong.

where did you put it? in devkitpro/portlib/ folder? which files? (you didn't include them in your sources, it's better to add .h and .a into /libs/libcurl/ folder so every other users can compile it, or provide them in zip to add to portlib)
When I use only libcurl, it asks for /sys/socket.h
if I add it, it conflicts with libogc/includes/network.h

did you have to edit all the libraries to resolve conflicts?


I copied all the necessary lib files (.h and .a) from "wiilauncher"
https://code.google.com/p/wiilauncher/source/browse/#svn/trunk/libs
then added them to libogc folder.

Since most of the "network" functions have been already covered by USB loader GX,
I use an older version of network.h to compile instead.
You can remove line 7 (#include<sys/socket.h>) if you use a newer version of "network.h".
 
my network.h doesn't have sys/socket.h (sockaddr and linge are defined in network.h)

but curl.h also includes sys/socket.h, and if I remove it then libcurl won't work anymore because functions defined in network.h are renamed differently in libogc (net_<different function name>).

and before that, I got
undefined reference to `curl_easy_init'
undefined reference to `curl_easy_setopt'
undefined reference to `curl_easy_setopt'
undefined reference to `curl_easy_setopt'
undefined reference to `curl_easy_setopt'
undefined reference to `curl_easy_setopt'


recompiling the library to use different variable names would be the best choice, but again it seems out of my reach. I don't know how to compile the library for Wii.
 
Call of Duty Modern Warfare 3, mission 3: once we are supposed to control the UGV, the wiimote and nunchuk don't respond at all and the game blackscreens after 30-40 seconds. Using GX r1218 (no mod) and D2X v8 Final base 57 for this game.
 
I don't think I can do anything about controls in games (unless an old revision worked and something in the loader's side affected it)
Most likely a cIOS issue.
 
recompiling the library to use different variable names would be the best choice, but again it seems out of my reach.

Here is the full libogc (1.8.12) folder from my PC .
(Makefile is included)

http://www.sendspace.com/file/8jzr0d

If you still can't compile successfully, I don't know what else I can help.
(I use devitPPC r26 which I suppose it's the same as you)
 
Thank you :)

I have 1.8.12 and PPC_r27
I'll try with your files.

edit:
1.8.12 doesn't have "#include <sys/socket.h>", so your libogc is not really 1.8.12 (nor 1.8.11)

edit:
I don't like to edit libogc content, using portlib folder is better.
This is too messy to add a single library..., we need to edit a lot of existing variable names in the loader, etc.


Edit:
I really think we should find what's soooo different in curl which makes cloudflare working.
how is formed the tcp packet?
 
Did you check nintendont thread?
USB is possible for few weeks now, both standalone and in USBloaders.
I always check it regularly and update the loader accordingly, I was asking if I can now load a GC game using Nintendont right from USB Loader GX without having to copy it to SD first instead, I heard there was going to be an update to include that!

airline38 Thank you so much for the mod. <3 <3 <3

Also I'll take this chance to ask a general question about loading a couple of games on USB Loader GX, We Dare and The Smurfs Dance Party (PAL) they both seem to crash when I lunch them We dare works until I get to the main menu then it crashes on different locations every time, Smurfs Dance Party gives me a black screen from the beginning but the remote is still lit indicating that the game is still running, both of these games work fine if I hit "reset" on the console right after I select them from the loader and before the crash meaning that using a certain setting they should work fine, anybody knows what's the best settings for these games to work? I have every other game working just great with Usb Loader GX and I have a huge library of games!
 
thanks for the new mod.
I think I'll commit my current mod as 1219 and then fix geckocodes in another revision as it requires too much changes (you need to rename a variable in a lot of files).
also, a patch would be easier than providing the full sources each time, we don't know what has been edited or not.


I couldn't fix EmuNAND + rev17 + SD issue :/
it randomly doesn't work. (can't read tmd)
 
  • Like
Reactions: Magnus87
also, a patch would be easier than providing the full sources each time, we don't know what has been edited or not.
I don't know how to make a patch(file) for the changes I did.
So the only way I can do is to include the whole "source" folder.
 
if you have tortoise svn:
right-click in the trunk folder > tortoise > create a patch

if you have a command line svn:
browse to trunk folder and type:
svn diff > mypatch.patch

to apply patches:
tortoise: put the patch in trunk folder, right-click on it and select apply patch, it opens a new windows where you can compare your copy and the patched one. right-click in the little window and select "patch all".
cmd: patch -p0 < /path/to/file
 
Thank you :)
I'll use it later.

I noticed you are missing 2 png files in your copy (wifi 10 and 16).
if yo uused checkout, you should have them. if not, you should make a checkout when I release next revision(s).
 

Site & Scene News

Popular threads in this forum