mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
修复编译出现的警告
This commit is contained in:
parent
280383e220
commit
b157277c25
@ -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
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.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
|
||||
{
|
||||
@ -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
|
||||
|
@ -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)) ){
|
||||
|
Loading…
x
Reference in New Issue
Block a user