mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-29 14:44:17 +01:00
c7411c9200
*optimized use of memory (sizes over 30kb go to mem2 now first till it runs out) *avoid use of mem2 area used on IOS_Reload (first 2 mb) *fixed bug in aiff sound playback. breaked some banner sounds *fixed boot of We Dare again (stupid channels added in the pattern again :P) *unmount the usb partition used for nand emu and remount it after activating nand emu (fat32 cache flush)
30 lines
691 B
C
30 lines
691 B
C
// 2 MEM2 allocators, one for general purpose, one for covers
|
|
// Aligned and padded to 32 bytes, as required by many functions
|
|
|
|
#ifndef __MEM2_H_
|
|
#define __MEM2_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *MEM1_alloc(unsigned int s);
|
|
void *MEM1_memalign(unsigned int a, unsigned int s);
|
|
void *MEM1_realloc(void *p, unsigned int s);
|
|
void MEM1_free(void *p);
|
|
|
|
void MEM2_init(unsigned int mem2Size);
|
|
void MEM2_cleanup(void);
|
|
void MEM2_takeBigOnes(bool b);
|
|
void *MEM2_alloc(unsigned int s);
|
|
void *MEM2_realloc(void *p, unsigned int s);
|
|
void MEM2_free(void *p);
|
|
unsigned int MEM2_usableSize(void *p);
|
|
unsigned int MEM2_freesize();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !defined(__MEM2_H_)
|