*Fixed crash with fat cache free on gamestart

*Moved fat cache to mem2
This commit is contained in:
dimok321 2010-09-25 07:07:08 +00:00
parent 73ade7d0b4
commit 137c2331c6
3 changed files with 6 additions and 27 deletions

View File

@ -2,8 +2,8 @@
<app version="1">
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
<version>1.0 r973</version>
<release_date>201009250551</release_date>
<version>1.0 r974</version>
<release_date>201009250702</release_date>
<short_description>Loads games from USB-devices</short_description>
<long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times.
The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.

View File

@ -190,9 +190,6 @@ s32 MountNTFS(u32 sector)
s32 ret;
if (fs_ntfs_mount) return 0;
//printf("mounting NTFS\n");
//Wpad_WaitButtons();
_FAT_mem_init();
ntfsInit(); // Call ntfs init here, to prevent locale resets
@ -253,22 +250,3 @@ s32 UnmountNTFS(void)
return 0;
}
void _FAT_mem_init()
{
}
void* _FAT_mem_allocate(size_t size)
{
return malloc(size);
}
void* _FAT_mem_align(size_t size)
{
return memalign(32, size);
}
void _FAT_mem_free(void *mem)
{
free(mem);
}

View File

@ -32,21 +32,22 @@
#define __MEM_ALLOCATE_H_
#include <malloc.h>
#include "memory/mem2.h"
static inline void* _FAT_mem_allocate(size_t size)
{
return malloc(size);
return MEM2_alloc(size);
}
static inline void* _FAT_mem_align(size_t size)
{
return memalign(32, size);
return MEM2_alloc(size);
}
static inline void _FAT_mem_free(void* mem)
{
free(mem);
MEM2_free(mem);
}
#endif // _MEM_ALLOCATE_H