Welcome! Log In Create A New Profile

Advanced

check if the dol/elf is booted form sd or hdd...

Posted by filfat 
Re: check if the dol/elf is booted form sd or hdd...
January 08, 2013 04:19PM
You have to actually mount the SD or USB drives before you use them.
Re: check if the dol/elf is booted form sd or hdd...
January 09, 2013 06:52AM
Re: check if the dol/elf is booted form sd or hdd...
January 09, 2013 10:41AM
fatInitDefault();

You really should try and figure some of this stuff out yourself instead of expecting to be led through everything step by step. For finding functions like this one, take a look through the header files of libogc (i.e. the .h files in devkitPro\libogc\include). Alternatively just look at the examples included with devkitPro and it should show you there how to do this as well. Plus you can download simple open source homebrew apps and look at their source.

EDIT: You could add some error checking to the above:

if(!fatInitDefault()){
//insert error handling code e.g. error message and quit
}



Edited 1 time(s). Last edit at 01/09/2013 10:43AM by SifJar.
Sorry, only registered users may post in this forum.

Click here to login