mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-26 20:01:55 +01:00
d8ee3c1b68
-recompiled mload modules for hermes cIOS -added sdhc module for hermes cIOS -fixed booting wii games from sd card -improved wii game support via sd card, now you can use hermes, wanin and d2x (not d2x only anymore) -moved some more stuff to boot wii games into the external booter -added gecko debug prints to external booter -automatically disabling savegame emulator if you want to boot a wii game via hermes or waninkoko cIOS
32 lines
549 B
C
32 lines
549 B
C
|
|
// worst case wbfs fragmentation scenario:
|
|
// 9GB (dual layer) / 2mb (wbfs sector size) = 4608
|
|
#define MAX_FRAG 20000
|
|
// max that ehcmodule_frag will allow at the moment is about:
|
|
// 40000/4/3-1 = 21844
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "gctypes.h"
|
|
|
|
typedef struct
|
|
{
|
|
u32 offset; // file offset, in sectors unit
|
|
u32 sector;
|
|
u32 count;
|
|
} Fragment;
|
|
|
|
typedef struct
|
|
{
|
|
u32 size; // num sectors
|
|
u32 num; // num fragments
|
|
u32 maxnum;
|
|
Fragment frag[MAX_FRAG];
|
|
} FragList;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|