mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-16 00:15:08 +01:00
0e7d37b18b
*Fixed freeze in theme menu when its empty *Optimized the game list loading on fat/ntfs/ext. This should speed up the loading process. *Added cache of game titles. This will speed up the startup after the cache file is written (in other words on second start of this rev). A TitlesCache.bin will be created in the same path as the wiitdb.xml for this. This should especial speed up the startup of fat/ntfs/ext partitions by a lot if no sub folders with the game titles are used, like GAMEID.wbfs only. That must have been painfully slow before on a lot of games. Should be at about the same speed as with sub folders now. I would still recommend to use sub folders. *Removed wiilight (disc slot) blinking when switching USB port on Hermes cIOSes (thanks rodries) *Added the ehcmodule sources from rodries to the branches *Updated language files
31 lines
831 B
C
31 lines
831 B
C
#ifndef LIBWBFS_OS_H
|
|
#define LIBWBFS_OS_H
|
|
// libwbfs_os.h for ehc module env
|
|
|
|
#include "syscalls.h"
|
|
#include "ehci_types.h"
|
|
#include "ehci.h"
|
|
|
|
void *WBFS_Alloc(int size);
|
|
void WBFS_Free(void *ptr);
|
|
void my_sprint(char *cad, char *s);
|
|
|
|
#define wbfs_fatal(x) do{os_puts("wbfs panic ");os_puts(x);os_puts("\n"); while(1) ehci_msleep(100);}while(0)
|
|
#define wbfs_error(x) do{os_puts("wbfs error ");os_puts(x);;os_puts("\n");}while(0)
|
|
#define wbfs_malloc(x) WBFS_Alloc(x)
|
|
#define wbfs_free(x) WBFS_Free(x)
|
|
#define wbfs_ioalloc(x) WBFS_Alloc(x)
|
|
#define wbfs_iofree(x) WBFS_Free(x)
|
|
#define wbfs_ntohl(x) (x)
|
|
#define wbfs_htonl(x) (x)
|
|
#define wbfs_ntohs(x) (x)
|
|
#define wbfs_htons(x) (x)
|
|
|
|
#include <string.h>
|
|
#define wbfs_memcmp(x,y,z) memcmp(x,y,z)
|
|
#define wbfs_memcpy(x,y,z) memcpy(x,y,z)
|
|
#define wbfs_memset(x,y,z) memset(x,y,z)
|
|
|
|
|
|
#endif
|