Hacking USB Loader GX

  • Thread starter Thread starter blackb0x
  • Start date Start date
  • Views Views 8,066,634
  • Replies Replies 30,226
  • Likes Likes 74
Can anyone tell my why I get the following error when I try to compile r137
using the programers notepad
I have already downloaded libwiigui and libogc and unziped both into devkitpro/libogc

I can however compile ULitmite loader 7.3 without any errors
any help would be welcome thankyou

> "make"
FreeTypeGX.cpp
audio.cpp
input.cpp
main.cpp
menu.cpp
c:/loader137/source/menu.cpp: In function 'int MenuInstall()':
c:/loader137/source/menu.cpp:1479: error: 'struct WPADData' has no member named 'battery_level'
c:/loader137/source/menu.cpp: In function 'int MenuDiscList()':
c:/loader137/source/menu.cpp:1665: warning: null argument where non-null required (argument 2)
c:/loader137/source/menu.cpp:1847: error: 'struct WPADData' has no member named 'battery_level'
c:/loader137/source/menu.cpp: In function 'int MenuFormat()':
c:/loader137/source/menu.cpp:2234: error: 'struct WPADData' has no member named 'battery_level'
c:/loader137/source/menu.cpp: In function 'int MenuCheck()':
c:/loader137/source/menu.cpp:2636: error: 'struct WPADData' has no member named 'battery_level'
make[1]: *** [menu.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:04
 
weird thing are those warning with latest build
QUOTE said:
c:/USBloader/source/menu.cpp:1665: warning: null argument where non-null required (argument 2)
c:/USBloader/source/libwbfs/libwbfs.c:520: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
c:/USBloader/source/libwbfs/libwbfs.c:520: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
c:/USBloader/source/libwbfs/libwbfs.c:567: warning: unused variable 'disc_info_sz_lba'

but it still works

r138 : http://www.sendspace.com/file/xxatiw
Made the up/down on the scrollbar holdable.
Added variable scrolldelay.
Played with spindown to make it act like the disk channel.
 
moviecouple said:
Was looking for r136 with the added display regions. fixed error in settings menu. Does anyone have this one?
They got overwritten. Myself and another dev were changing the same file at the same time. I uploaded my version with the game region code in it. And then the other dev uploaded theirs and my changes were not in their version. I'll throw it in with another upload.

On another note, I just made the up/down arrows holdable so they scroll the list without having to keep clicking on them. And put a variable in the source so the speed it scrolls can be changed. It is fine for me with 60 games. If you have more or less, you can change it to suit you. It isn't in the settings screen, but it may pop up there one day.
 
OK I downloaded the latest libwiigui from http://code.google.com/p/libwiigui/downloads/list
and unzipped it to devkitpro/libogc and I am still getting the following errors
when i try to compile r137 any other idea's that might help would be welcome

thankyou

> "make"
FreeTypeGX.cpp
audio.cpp
input.cpp
main.cpp
menu.cpp
c:/usbloader/source/menu.cpp: In function 'int MenuInstall()':
c:/usbloader/source/menu.cpp:1479: error: 'struct WPADData' has no member named 'battery_level'
c:/usbloader/source/menu.cpp: In function 'int MenuDiscList()':
c:/usbloader/source/menu.cpp:1665: warning: null argument where non-null required (argument 2)
c:/usbloader/source/menu.cpp:1847: error: 'struct WPADData' has no member named 'battery_level'
c:/usbloader/source/menu.cpp: In function 'int MenuFormat()':
c:/usbloader/source/menu.cpp:2234: error: 'struct WPADData' has no member named 'battery_level'
c:/usbloader/source/menu.cpp: In function 'int MenuCheck()':
c:/usbloader/source/menu.cpp:2636: error: 'struct WPADData' has no member named 'battery_level'
make[1]: *** [menu.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:0
 
giantpune,

That would be great. I wanted a loader that shows the Region, as opposed to, the GameID#. Been looking forward to that revision for a while.
 
giantpune said:
moviecouple said:
Was looking for r136 with the added display regions. fixed error in settings menu. Does anyone have this one?
They got overwritten. Myself and another dev were changing the same file at the same time. I uploaded my version with the game region code in it. And then the other dev uploaded theirs and my changes were not in their version. I'll throw it in with another upload.


biggrin.gif
That's funny

I was just looking at the page that shows all the versions and I was just thinking to myself, hmm one person adds to the code, then another person, but what happens if they both try to at the same time?

I thought to myself there must be some kind of mechanism to prevent something from being lost. I actually thought about this for more than a minute
smile.gif


But now I have my answer. There's no safety mechanism. Whatever happens just happens...
biggrin.gif
 
rev138 DOL (tweaked)

Tweaks:
Code:
+Default video mode set to "System Default"
+Password for childproof options changed from AB121B to ab121b

Changelog (since rev134):
Code:
rev135
+Added custom home, install and setting button and coordinate support
rev137
+Background slightly brighter
+Over keys modified
+Renamed Tooltips
rev138
+Made the up/down on the scrollbar holdable
+Added variable scrolldelay
+Played with spindown to make it act like the disk channel
 
Finally got r137 to compile at least I only get warnings now
and it makes the .dol file thank you all for the help

by the way are these warning normal

c:/usbloader/source/menu.cpp:1665: warning: null argument where non-null required (argument 2)
c:/usbloader/source/libwbfs/libwbfs.c:520: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
c:/usbloader/source/libwbfs/libwbfs.c:520: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
c:/usbloader/source/libwbfs/libwbfs.c:567: warning: unused variable 'disc_info_sz_lba'

If they are I can have a better look at the code now so thanks again
 
can you add games through the Wii using this loader? i thought you could but i don't understand how.
am i being a total idiot?

i have Super Paper Mario in my Wii and when i enter HBC the disc stops spinning. i go to the USB Loader and i press the + button and nothing happens? am i missing something?
 
To all devs of this loader, I have a question: "Will you join us ?"

I added support to your version of the loader for the "improved titles.txt with more information" XML database that I'm preparing http://gbatemp.net/index.php?showtopic=149432
(the titles.txt I uploaded as the titles.txt Wiki will be converted to the new format, so anybody feel free to keep adding/correcting it until the new format is released)

For now it only displays year and publisher under the game ID (under the cover) but this loader seems like the perfect one for nice accessories icons under the cover
smile.gif


I sent a PM to cyrex a couple days ago but haven't heard from him yet. I think maybe he's not too fond of the idea? I saw that post from a few pages ago:
cyrex said:
you can read almost everything and dislpay it but soon the screen will be crowded with information about the game. i have an idea but don't know if it's worth it
tongue.gif
. i'll tell you later about it.
I understand from the point of view of a GUI designer things should remain clean looking, but it's just a matter of adding that to the design, it's not like there is a whole page of information to display.
and of course, displaying the information could be optional with a setting in config.txt.
 
the plus button is disabled by default for childmode. you have to go to settings, press the lock button and type in the password AB121B and then the install button gets enabled.
 
cyrex said:
the plus button is disabled by default for childmode. you have to go to settings, press the lock button and type in the password AB121B and then the install button gets enabled.

thank you very much.
 
priapism said:
can you add games through the Wii using this loader? i thought you could but i don't understand how.
am i being a total idiot?

i have Super Paper Mario in my Wii and when i enter HBC the disc stops spinning. i go to the USB Loader and i press the + button and nothing happens? am i missing something?


go to settings > lock > type in AB121B or ab121b > OK

you should be able to press "+" and add games now. you have to repeat the above step every time you leave and come back to the usb loader
 
ok that worked fine for installing the games but now i have a new problem.

none of the cover art for the games i just installed is showing up. the game IDs all match.
what could be causing this problem?
 
priapism said:
ok that worked fine for installing the games but now i have a new problem.

none of the cover art for the games i just installed is showing up. the game IDs all match.
what could be causing this problem?
make sure the size is a multiple of 4

most common size is 160x224
 

Site & Scene News

Popular threads in this forum