mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-09-09 00:53:19 +02:00
![dimok321](/assets/img/avatar_default.png)
*Added option for file splitting on install. 2GB, 4GB and on ntfs/ext2/3/4 partitions no splitting at all option. *Fixed the install dir naming patterns option for fat32/ntfs/ext2/3/4 game installs *Changed/Fixed Home Menu exit to loader / shutdown *Added reload of game list on SD button click *Fixed language file loading on startup *Changed browse for theme path to file browser instead of OnScreenKeyboard Several settings were changed in this revision. It is recommended to reset the configs before using this rev. Forwarder Channel Update: *Use of IOS58 and AHBPROT *Complete change of forwarder. Using same as on WiiXplorer now. *Looking for dol in every primary fat/ntfs partition in the known paths (/apps/usbloader_gx/ and /apps/usbloadergx/). (Booting loader from ntfs will be usefull once images and settings can also be stored on ntfs.) Here is a download link for the channel: http://www.mediafire.com/?r11bwt1occlanmk The channel will be uploaded to the download section later when it is thoroughly tested.
44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
#ifndef _SPLITS_H
|
|
#define _SPLITS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#define MAX_SPLIT 10
|
|
|
|
typedef struct split_info
|
|
{
|
|
char fname[1024];
|
|
//FILE *f[MAX_SPLIT];
|
|
int fd[MAX_SPLIT];
|
|
//u64 fsize[MAX_SPLIT];
|
|
u32 split_sec;
|
|
u32 total_sec;
|
|
u64 split_size;
|
|
u64 total_size;
|
|
int create_mode;
|
|
int max_split;
|
|
} split_info_t;
|
|
|
|
void split_get_fname(split_info_t *s, int idx, char *fname);
|
|
//FILE *split_open_file(split_info_t *s, int idx);
|
|
//FILE *split_get_file(split_info_t *s, u32 lba, u32 *sec_count, int fill);
|
|
int split_open_file(split_info_t *s, int idx);
|
|
int split_get_file(split_info_t *s, u32 lba, u32 *sec_count, int fill);
|
|
int split_fill(split_info_t *s, int idx, u64 size);
|
|
int split_read_sector(void *_fp, u32 lba, u32 count, void*buf);
|
|
int split_write_sector(void *_fp, u32 lba, u32 count, void*buf);
|
|
void split_init(split_info_t *s, char *fname);
|
|
void split_set_size(split_info_t *s, u64 split_size, u64 total_size);
|
|
void split_close(split_info_t *s);
|
|
int split_open(split_info_t *s, char *fname);
|
|
int split_create(split_info_t *s, char *fname, u64 split_size, u64 total_size, bool overwrite);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //_SPLITS_H
|