diff --git a/source/arm11/acf.c b/source/arm11/acf.c index 770e709..3860612 100644 --- a/source/arm11/acf.c +++ b/source/arm11/acf.c @@ -9,7 +9,7 @@ #include "arm11/console.h" #include "fs.h" -extern Result fReadSize( FHandle file, void *buff, unsigned size, unsigned *readout ); +extern Result fReadSize( FHandle file, void *buff, unsigned size, uint32_t *readout ); typedef struct { diff --git a/source/arm11/acl.c b/source/arm11/acl.c index 202e3b5..998f604 100644 --- a/source/arm11/acl.c +++ b/source/arm11/acl.c @@ -4,7 +4,7 @@ #include #include -extern Result fReadSize( FHandle file, void *buff, unsigned size, unsigned *readout ); +extern Result fReadSize( FHandle file, void *buff, unsigned size, uint32_t *readout ); typedef struct { @@ -38,7 +38,7 @@ typedef struct } CheatSet; static CheatLib gblcht = {0, 0, NULL, 0, 0}; -static CheatSet gblset = {0, 0, {0,0,0}, NULL}; +static CheatSet gblset = {0, 0, {0,0,0}, NULL, NULL}; #define ACL_MAGIC_CODE 0x4c4341 #define ACL_GBA_CODELEN 4 diff --git a/source/arm11/main.c b/source/arm11/main.c index f43447a..050be46 100644 --- a/source/arm11/main.c +++ b/source/arm11/main.c @@ -47,10 +47,10 @@ static void setBacklight(void) else GFX_setBrightness(backlight, backlight); } -Result fReadSize( FHandle file, void *buff, unsigned size, unsigned *readout ) +Result fReadSize( FHandle file, void *buff, unsigned size, uint32_t *readout ) { - unsigned fill = 0; - unsigned readed; + uint32_t fill = 0; + uint32_t readed; do{ Result res; if( RES_OK != (res=fRead(file, buff+fill, size-fill < 256 ? size-fill : 256, &readed)) ){