Hacking Configurable USB Loader

  • Thread starter Thread starter oggzee
  • Start date Start date
  • Views Views 7,865,811
  • Replies Replies 18,482
  • Likes Likes 22
Dr. Clipper said:
nop.compiler said:
Please, somebody give ETERNAL THANKS to people maintaining http://gwht.wikidot.com/.
You're welcome.

The website is perfectly structured and very well commented: I now understand what ISOs and cISOs are, why must I install IOS 236-249-222 and how, where to download all the required files to do it, etc. I finally managed it to work in 30-40 minutes :-)

Congratulations for the website.
 
oggzee said:
omg so many colors, my eyes hurt!
wacko.gif

Sorry about that!
tongue.gif

I'll try to make colorless posts from now on!
wink.gif

But can I still use bolds, italics and underlines? lol
laugh.gif

oggzee said:
We do call that too, but from a different function...

Code:
void Do_Shutdown() {
ÂÂÂÂServices_Close();
ÂÂÂÂSubsystem_Close();
ÂÂÂÂSys_Shutdown();
}
void Subsystem_Close(void)
{
....
ÂÂÂÂUSB_Deinitialize();
}
maybe it's the order of things...

Can you try this:
http://cfg-loader.googlecode.com/files/cfg64t1.dol
It has the order of USB_Deinitialize and USBStorage_Deinit changed.
I wonder if that works any better?
Thanks!
smile.gif

But that change didn't work either...
cry.gif

I've been performing some more tests on different scenarios, and here are the results:
cool.gif

(I've turned my Wii off and on more than 20 times in just a few minutes!!!
tongue.gif
)
  • with CFG, the HDD always makes that disturbing sound
  • with WiiFlow, sometimes it does and sometimes it doesn't (still couldn't understand why
    wacko.gif
    )
  • from the System Menu, the HDD turn off silently
  • from WiiMC, even when accessing the USB drive, it turns off silently too
After this, I went to check how WiiMC does the shutdown process!
rolleyes.gif

(From: http://wiimc.googlecode.com/svn/trunk/source/fileop.cpp )
CODE
static void * devicecallback (void *arg)
{
(...)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif(isInserted[DEVICE_USB])
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif(!usb->isInserted()) // device was removed
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂUnmountPartitions(DEVICE_USB);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂusb->shutdown();
(...)
}

static void UnmountPartitions(int device)
{
ÂÂÂÂÂÂÂÂchar mount[11];

ÂÂÂÂÂÂÂÂfor(int i=0; i < MAX_DEVICES; i++)
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif(part[device].type == T_FAT)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].type = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsprintf(mount, "%s:", part[device].mount);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂfatUnmount(mount);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂelse if(part[device].type == T_NTFS)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].type = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂntfsUnmount(part[device].mount, false);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].name[0] = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].mount[0] = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].sector = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].interface = NULL;
ÂÂÂÂÂÂÂÂ}
}

Does CFG unmount the partitions too? Could that be it?
huh.gif

And don't the libogc functions to close/unmount USB stuff have some kind of return value to check if the closing/unmounting procedure was successful or not?
ninja.gif
 
nop.compiler said:
nop.compiler said:
Hi.

I've installed IOS 236, IOS 247 and Hermes 222 and I still get the "Error: IOS 247 is stub!" message.

I think I've solved it by editing the meta.xml file and adding:

ios=248

Please, somebody give ETERNAL THANKS to people maintaining http://gwht.wikidot.com/.

I also used that tutorials for updating the cIOSs and installing the new forwarder from FIX94, and in the process learned a lot.
Thanks Dr. Clipper!
 
Oggzee,

In the rev20 has lags thread http://gbatemp.net/t263019-waninkoko-s-cio...with-ios56-base, and the rev21 released thread http://gbatemp.net/t271050-custom-iosx-rev21-released?, people are discussing problems with lag and controller dropouts using Wanin rev20 or higher with any base.

One person said they had 2 Buffalo station 320G drives, with one FAT and the other WBFS. Using a Wii with rev20base56, no problems were encountered using the wbfs drive, while the FAT drive suffered from the lags/dropouts. He has since formatted the wbfs drive to FAT, to test, and it now suffers the same problem.

Due to this difference, and the fact that only Wanin releases using external FAT support have the problem, I'm wondering whether it's possible that the problem lies in (or can be circumvented in) the frag modules of cfgUSB.

The quickest way to test it, is with the Wario Shake It game. Load the game to the screen where you select your save game, and just let it sit there. The hard drive will blink every 8-10 secs. This HDD activity will be synchronous with a message flashing onscreen for an instant saying that communication with the remote has been lost. Most games don't show an error, but it causes problems like constantly missed notes (every 10 secs) in RB3.
 
Is it possible after a game is exited for it to automatically return to the CFG USB Loader instead of the wii channel screen?
 
Ozzy1980 said:
Is it possible after a game is exited for it to automatically return to the CFG USB Loader instead of the wii channel screen?
Yes. Install a forwarder and add its ID to the return_to_channel option. For the forwarder I linked just before, you would add:

return_to_channel=UCXF

to config.txt.

Note also that this feature is incompatible with write_playlog=1. If you try to use them both together, it will only record the very last game you played in each play session to the play log on the message board.
 
XICO2KX said:
Thanks!
smile.gif

But that change didn't work either...
cry.gif

I've been performing some more tests on different scenarios, and here are the results:
cool.gif

(I've turned my Wii off and on more than 20 times in just a few minutes!!!
tongue.gif
)
  • with CFG, the HDD always makes that disturbing sound
  • with WiiFlow, sometimes it does and sometimes it doesn't (still couldn't understand why
    wacko.gif
    )
  • from the System Menu, the HDD turn off silently
  • from WiiMC, even when accessing the USB drive, it turns off silently too
    Too bad it didn't work, maybe it has to do with some kind of delay, I can add a 1 second sleep after usb deinit and before shutdown, can you try this:
    http://cfg-loader.googlecode.com/files/cfg64t2.dol
XICO2KX said:
After this, I went to check how WiiMC does the shutdown process!
rolleyes.gif

Does CFG unmount the partitions too? Could that be it?
huh.gif

And don't the libogc functions to close/unmount USB stuff have some kind of return value to check if the closing/unmounting procedure was successful or not?
ninja.gif

Yes we do, if you look at:
Do_Shutdown() -> Subsystem_Close() -> UnmountAll()

CODE
int UnmountAll(MountTable *save_mtab)
{
...
ÂÂÂÂfor (i=0; i
 
Hi everyone,

i want to ask what's the difference between two files config.txt and settings.cfg in usb-loader folder of my sd.
 
XICO2KX said:
[*]with WiiFlow, sometimes it does and sometimes it doesn't (still couldn't understand why
wacko.gif
)

Heh I have taken another look at WiiFlow source, and they actually don't unmount anything and don't deinit usb when doing the shutdown.
They only unmount and deinit when launching a game.
Here is another test, with unmount and deinit removed from shutdown, I'm curious how this one behaves:
http://cfg-loader.googlecode.com/files/cfg64t3.dol

I'm also curious who is downloading all these test versions and why?
And how come there is no feedback even if there are 83 downloads of 64t1 and 12 downloads of 64t2?
 
overjet said:
Hi everyone,

i want to ask what's the difference between two files config.txt and settings.cfg in usb-loader folder of my sd.

Settings.cfg is where all the options saved within the loader itself are stored. This is predominantly the favorites and hidden games, along with all the per-game settings. In addition, several options may be saved here when you perform the action to save all settings at the Global Options screen (by pushing 2). If these options are located in settings.cfg, they override the same settings in config.txt. The options that may appear in settings.cfg are:

•theme - Theme to load at startup
•profile - Default profile to load at startup
•device - Default device where games are stored (SD/USB)
•partition - Default partition where games are stored
•gui_style - Initial GUI style at startup
•gui_rows - Inital number of rows for gridflow GUI styles
 
Maybe because they are not defined there.
They can be in there, but, most probably they are defined in config.txt.

The difference between them is that settings.cfg overrides config.txt.

I think...
 
Anycase is very confusing the same settings in two different files.In Spain we would say : "House with two gates ,difficult to look after!"

Greetings
 

Site & Scene News

Popular threads in this forum