mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-08 23:04:13 +08:00
修复编译出现的警告
This commit is contained in:
parent
280383e220
commit
b157277c25
@ -9,7 +9,7 @@
|
|||||||
#include "arm11/console.h"
|
#include "arm11/console.h"
|
||||||
#include "fs.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
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.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
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@ typedef struct
|
|||||||
} CheatSet;
|
} CheatSet;
|
||||||
|
|
||||||
static CheatLib gblcht = {0, 0, NULL, 0, 0};
|
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_MAGIC_CODE 0x4c4341
|
||||||
#define ACL_GBA_CODELEN 4
|
#define ACL_GBA_CODELEN 4
|
||||||
|
@ -47,10 +47,10 @@ static void setBacklight(void)
|
|||||||
else GFX_setBrightness(backlight, backlight);
|
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;
|
uint32_t fill = 0;
|
||||||
unsigned readed;
|
uint32_t readed;
|
||||||
do{
|
do{
|
||||||
Result res;
|
Result res;
|
||||||
if( RES_OK != (res=fRead(file, buff+fill, size-fill < 256 ? size-fill : 256, &readed)) ){
|
if( RES_OK != (res=fRead(file, buff+fill, size-fill < 256 ? size-fill : 256, &readed)) ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user