From b157277c25984e4baf9646a443473a199c86a337 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Mon, 16 Jan 2023 20:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=9A=84=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/acf.c | 2 +- source/arm11/acl.c | 4 ++-- source/arm11/main.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) 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)) ){