Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,190,605
  • Replies 29,369
  • Likes 48

Lee.games

Member
Newcomer
Joined
Nov 12, 2008
Messages
6
Trophies
0
XP
10
Country
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
 

keyra

Spoderman self proclamed fan
Member
Joined
Dec 23, 2008
Messages
820
Trophies
0
XP
635
Country
France
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.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
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.
 

Lee.games

Member
Newcomer
Joined
Nov 12, 2008
Messages
6
Trophies
0
XP
10
Country
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
 

skfields01

Well-Known Member
Member
Joined
Apr 22, 2003
Messages
395
Trophies
0
XP
368
Country
United States
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.
 

BlackEnigma

Well-Known Member
Member
Joined
Mar 1, 2009
Messages
344
Trophies
0
XP
211
Country
United States
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
 

jeanrmarques

Well-Known Member
Newcomer
Joined
Mar 28, 2009
Messages
80
Trophies
0
Age
44
Location
Pelotas - RS - Brazil
XP
73
Country
Brazil
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
 

Lee.games

Member
Newcomer
Joined
Nov 12, 2008
Messages
6
Trophies
0
XP
10
Country
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
 

priapism

Well-Known Member
Member
Joined
May 12, 2008
Messages
373
Trophies
0
XP
138
Country
United States
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?
 

zorglub07

Well-Known Member
Member
Joined
Apr 11, 2007
Messages
355
Trophies
0
Website
gametdb.com
XP
329
Country
France
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.
 

cyrex

Well-Known Member
OP
Member
Joined
Apr 3, 2009
Messages
251
Trophies
0
Website
Visit site
XP
79
Country
Gambia, The
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.
 

priapism

Well-Known Member
Member
Joined
May 12, 2008
Messages
373
Trophies
0
XP
138
Country
United States
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.
 

kamakaze

Well-Known Member
Newcomer
Joined
Apr 19, 2009
Messages
47
Trophies
0
XP
1
Country
United States
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
 

priapism

Well-Known Member
Member
Joined
May 12, 2008
Messages
373
Trophies
0
XP
138
Country
United States
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?
 

BlindDude

Well-Known Member
Member
Joined
Dec 31, 2008
Messages
358
Trophies
0
XP
160
Country
United States
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

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
  • K3Nv2 @ K3Nv2:
    Turns out you can't sprinkle methamphetamine on McDonald's French fries
    +1
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
    +1
  • ZeroT21 @ ZeroT21:
    Probably just meth fries
    +1
  • K3Nv2 @ K3Nv2:
    White fries hold up
    +1
  • The Real Jdbye @ The Real Jdbye:
    @K3Nv2 sure you can
  • BakerMan @ BakerMan:
    why tf do people hate android users? is it the video quality? just because "AnDrOiD = pOoR" bc they don't cost an arm and a leg like iphones do?
    +1
  • BakerMan @ BakerMan:
    i won't be turned off by an iphone, but don't pick on me for having an android, that's just how this shit should work
  • ZeroT21 @ ZeroT21:
    Should say more what these kind of android users say bout nokia 3310 users
  • BigOnYa @ BigOnYa:
    I've owned both iPhone and Androids over the years. Both are just as good, other than Apples higher price. I'm currently on Android, Samsung S21 I think, and very happy with it.
  • K3Nv2 @ K3Nv2:
    Got my 60 minute steps in whew
    +2
  • BigOnYa @ BigOnYa:
    I get mine in everyday, going back n forth to the fridge for a beer.
    +1
  • K3Nv2 @ K3Nv2:
    6,000 steps in so far legs almost broke getting off
    +1
  • K3Nv2 @ K3Nv2:
    Your mind gets in a werid pattern of just finishing then when you're done you're like I need a soda
  • BigOnYa @ BigOnYa:
    You get a "walkers" high?
  • K3Nv2 @ K3Nv2:
    Not really I just use to love building up a sweat
  • BigOnYa @ BigOnYa:
    Funny, that's what uremum always says
  • K3Nv2 @ K3Nv2:
    Yeah and people that take viagra think they have a big dick
    +1
  • K3Nv2 @ K3Nv2:
    You cant fix one insult edit for another edit you pog
  • BigOnYa @ BigOnYa:
    Nuh I'm on my tablet n it always auto corrects me
  • K3Nv2 @ K3Nv2:
    Heorin and uremum do have close quarters
  • Sonic Angel Knight @ Sonic Angel Knight:
    BIG CHICKEN :P
    K3Nv2 @ K3Nv2: https://youtu.be/q855tNpvDoQ?si=Tl57KMjiVjyBherB +1