Sources needed for fat support in the loader:
SDUSB-Loader_cfg46-fat-src.zip
Included are the relevant source files needed for supporting games
on a FAT partition and the ehcmodule_fat IOS222-mload module.
The ehcmodule_fat and SetWBFSMode(u8 *id, s32 partition) changes:
If the given partition is 0-3 it behaves the same as original
ehcmodule 3.1 by Hermes.
If the partition is -1 (0xFFFFFFFF) it will open the game on first fat partition.
If the partition is any other number, it will be used that as the LBA
sector address of a FAT partition to use.
The rest of the files handle listing, opening, installing and removing games
on a FAT partittion, everything is wrapped around the WBFS_* functions, so
from a loader perspective there is almost no change.
Important!
all libfat versions up to and including 1.0.5 are not suitable for writing to
files that are cluster aligned especially if multiple writes are done.
That will create a corrupted file and filesystem.
I made a fix for that and the patch has been submitted here:
http://sourceforge.net/tracker/?func=detai...amp;atid=668553
Which has also been accepted, so it should be included in libfat 1.0.6.
So the install to fat from inside the loader absolutely requires the above patch.
The version of libfat I use in cfg loader is also included. But it contains also some other
changes which might not be suitable for everyone needs, such as changes in memory
management and access to partition start lba sector.
note: the sources to the ehcmodule_fat will be published too in a day or two.