Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,192,484
  • Replies 29,369
  • Likes 48

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
ok, so a minor thing, and apologies if this is known or doesn't belong here (as i am running off vWii), but my USB Loader GX (3.0 r1281) doesn't display/update my external's free space accurately (Fat 32; y-cable; correct ports; all games running fine).

the Sync to Fat option does not work, however, if i exit to CFG Loader and use its Sync FS command then the free space is corrected and shows the right amount in USB Loader GX... until another title is installed/uninstalled, and free space doesnt update.
It's weird that it's losing sync in the first place, but the code to perform the sync is the same. So the only difference is the FAT library version :unsure:

Does your storage device only have 1 partition? Have you checked with with something like MiniTool partition wizard, AOMEI partition assistant or GParted for any hidden partitions?
 

Citan_KL

Member
Newcomer
Joined
Jul 15, 2023
Messages
10
Trophies
0
XP
49
Country
United States
Does your storage device only have 1 partition? Have you checked with with something like MiniTool partition wizard, AOMEI partition assistant or GParted for any hidden partitions?
it has 2 partitions (250gb/50gb) both FAT32 but the smaller is empty (thought it might be a good idea to have for a few GCN games or EmuNand stuff in the future.. things i havent really delved into yet)

no hidden partitions as far as i can tell, and the loader loads/installs to the correct one.. but a peculiar thing about this hdd & partition is that 1) it used to be wbfs, but later converted using wbfs2fat; and 2) partition was extended using EaseUS Partition Master after conversion, preserving all data already on it.

can this be why? still odd that CFG syncs and GX doesn't.
 

Namcom

Active Member
Newcomer
Joined
Dec 13, 2007
Messages
41
Trophies
1
XP
109
Country
If I set autoboot in Priiloader to be USB Loader GX (AHBPROT available) it automatically goes into SD card mode and does not recongize my SSD connected to USB 0. I have to go into Hard Drive settings and disable SD Card mode. Is this a bug or is my SSD enclosure maybe too slow (drive is FAT32 and MBR)?

Entering GX through system menu or HBC works fine, reads the SSD as expected.
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
can this be why? still odd that CFG syncs and GX doesn't.
Most likely. But I'll see if I can recreate that setup when I've got some free time this week.

If I set autoboot in Priiloader to be USB Loader GX (AHBPROT available) it automatically goes into SD card mode and does not recongize my SSD connected to USB 0
Follow what I said in this post :)
 
  • Like
Reactions: jeannotte

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
Is there a instruction on this somewhere that I missed? I followed the autoboot instructions on wii.guide,
A note was added to that guide about autobooting USB Loader GX a few days ago ^_^

If Priiloader acted like a forwarder channel instead of copying files to the NAND then this wouldn't be a problem.
 

Remus95000

Member
Newcomer
Joined
Jul 15, 2023
Messages
7
Trophies
0
Age
40
XP
85
Country
France
Hello,
Yesterday night, I tried to compile USBLoader from the download page github => wiidev/usbloadergx/releases
2023-07-18 05_47_46-Releases · wiidev_usbloadergx.png
I also installed the latest DevKitPro (msys2 ver 2.10.0). I use Windows 10 to compile the project.
1689652248620.png

I compiled the code source by using the command "make clean && make" :
  1. I get a compilation error with the file 'utils/sjis.cpp' (see attached log_compilation_errors.txt)
    I fixed the problem by adding into the file #include <cstdint>

  2. When the code is compiled, I get a 'boot.dol' but the size does not match with the current release file.
    The compiled boot.dol size => 4561Ko, the download release boot.dol file => 4592Ko

  3. When I try to use the compiled file to my Wii from the SD card, an exception occurs after loading page.
It's the first time I try to compile this type of project (WiiBrew). Is it the the latest source files ? did I miss something (compilation option, etc...) ?
 

Attachments

  • log_compilation_errors.txt
    20.6 KB · Views: 29
  • log_compilation_success.txt
    47.6 KB · Views: 30

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
I also installed the latest DevKitPro (msys2 ver 2.10.0). I use Windows 10 to compile the project.
The latest version of devkitPPC won't be able to compile the loader correctly until I push changes to GitHub. And I don't do that until I'm ready to release a new version of the loader.

The file sizes won't match because GCC and some libraries were updated.

If you login to GitHub and fork the project then you could press the green code button and create a codespace. Then you can edit and compile the project via your browser or your own PC with VS Code and the Codespaces extension installed.
 
Last edited by blackb0x,
  • Like
Reactions: Remus95000

Amuro-san

Well-Known Member
Member
Joined
Jan 20, 2022
Messages
272
Trophies
0
Age
34
XP
709
Country
Brazil
speaking of USB Loader, the next update will Tintin work? In the current in the first art of the game after the lightning the game crashes and then try to make more NGC PAL games work in progressive as your last update made RE 0, 2 and 3 work in progressive
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
speaking of USB Loader, the next update will Tintin work? In the current in the first art of the game after the lightning the game crashes and then try to make more NGC PAL games work in progressive as your last update made RE 0, 2 and 3 work in progressive
It'll be fully playable from start to finish :)
 

Remus95000

Member
Newcomer
Joined
Jul 15, 2023
Messages
7
Trophies
0
Age
40
XP
85
Country
France
The latest version of devkitPPC won't be able to compile the loader correctly until I push changes to GitHub. And I don't do that until I'm ready to release a new version of the loader.

The file sizes won't match because GCC and some libraries were updated.

If you login to GitHub and fork the project then you could press the green code button and create a codespace. Then you can edit and compile the project via your browser or your own PC with VS Code and the Codespaces extension installed.
Thank you for this feedback, your solution works perfectly :yaywii:. As usual you are the best :bow:.
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
Thank you for this feedback, your solution works perfectly :yaywii:. As usual you are the best :bow:.
Editing and compiling homebrew directly from a web browser is pretty neat eh? ^_^

I'm guessing you disabled the call to editMetaArguments() in an attempt to fix quick game booting? If yes then I've already fixed that issue for the next release by adding if (Settings.skipSaving) return 0; to the start of the editMetaArguments() function.
 
  • Like
Reactions: Remus95000

Remus95000

Member
Newcomer
Joined
Jul 15, 2023
Messages
7
Trophies
0
Age
40
XP
85
Country
France
Editing and compiling homebrew directly from a web browser is pretty neat eh? ^_^

I'm guessing you disabled the call to editMetaArguments() in an attempt to fix quick game booting? If yes then I've already fixed that issue for the next release by adding if (Settings.skipSaving) return 0; to the start of the editMetaArguments() function.
Indeed, yes it is very greatful to be able to compile without having to install software.
It would be possible to comment out the editMetaArguments() function, but I preferred to modify the content (to avoid adding defects into the code source) [See attached capture]. I have done this modification temporarily to test a single rom loader (while waiting for your next release ;)).
 

Attachments

  • meta_modif.png
    meta_modif.png
    59.7 KB · Views: 26

leejaclane

Well-Known Member
Member
Joined
Jul 25, 2022
Messages
180
Trophies
0
XP
444
Country
United States
Would it be possible to get USB Loader GX to remember what the WiiU Widescreen option is set to, or to add it as an option per game for Wii games? Otherwise on Wii U certain Wii games without 16:9 support are stretched (this is regardless of whether Force 4:3 is used or not), whereas when played without the loader the Wii U would correctly display the game in 4:3 if it lacked support for 16:9.
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
I have done this modification temporarily to test a single rom loader (while waiting for your next release ;)).
I guess that'd work too. But I just skip saving entirely when booting directly into games, since there's no need to update the meta.xml file.

Would it be possible to get USB Loader GX to remember what the WiiU Widescreen option is set to, or to add it as an option per game for Wii games? Otherwise on Wii U certain Wii games without 16:9 support are stretched (this is regardless of whether Force 4:3 is used or not), whereas when played without the loader the Wii U would correctly display the game in 4:3 if it lacked support for 16:9.
That's already been added for the next release :)
 

XDeltaOne

Have a good time ;)
Member
Joined
May 20, 2020
Messages
363
Trophies
0
XP
906
Country
Germany

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
Hi would it be possible for them to customize the menu again with the latest priiloader vwii?
https://github.com/DacoTaco/priiloader/discussions/339
I'm not entirely sure what you're asking?

Priiloader 0.10.0 changes the index for system menu assets on vWii and that breaks banners for USB Loader GX. This issue has already been fixed for the next release though, so until I release it you should either avoid using Priiloader or go to the loaders GUI settings and set Game Window Mode to Rotating Disc.
 
Last edited by blackb0x,

therealedk_

Member
Newcomer
Joined
Jul 21, 2023
Messages
6
Trophies
0
Age
16
XP
32
Country
United States
It'd be cool if it gets merged, I just updated grammar, spelling, and punctuation for the software and opened a pull request 🙏

Edit: Compiled it myself and uploaded it to my Github fork EDKTech/usbloadergx/releases
 
Last edited by therealedk_,

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,546
Country
United Kingdom
It'd be cool if it gets merged, I just updated grammar, spelling, and punctuation for the software and opened a pull request 🙏

Edit: Compiled it myself and uploaded it to my Github fork EDKTech/usbloadergx/releases
There's some major issues with your pull request. For example, you've rebranded USB Loader GX into "Wii USB Tool" and you've broken support for every language other than English. Plus some of the extended strings can be problematic for anyone using a 4:3 display.

The original developers weren't native English speakers, so that's where a lot of the spelling and grammar mistakes come from. And I haven't bothered to correct many of the remaining issues because eventually I might change all of the strings and then have AI/people create new translations.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: @BakerMan, https://youtu.be/KaMSXIRReOo?si=2hRoijJtiwPUHXk5