修掉了一些编译警告

This commit is contained in:
root 2023-10-13 09:21:17 +08:00
parent 438ef3fcc1
commit f27422d884
2 changed files with 8 additions and 4 deletions

View File

@ -26,6 +26,7 @@
#include "arm11/drivers/hid.h" #include "arm11/drivers/hid.h"
// @MERGE 231006 START // @MERGE 231006 START
#include "drivers/lgy_common.h" #include "drivers/lgy_common.h"
#include "drivers/lgy11.h"
// @MERGE 231006 END // @MERGE 231006 END
#include "arm11/drivers/lgyfb.h" #include "arm11/drivers/lgyfb.h"
#include "arm11/console.h" #include "arm11/console.h"
@ -118,10 +119,9 @@ Result dump_rom( u32 size )
if( (res=fOpen(&file, "dump.gba", FA_OPEN_ALWAYS|FA_WRITE)) != RES_OK ) if( (res=fOpen(&file, "dump.gba", FA_OPEN_ALWAYS|FA_WRITE)) != RES_OK )
return res; return res;
u8 *p = LGY_ROM_LOC;
u32 len; u32 len;
ee_printf("dumping into dump.gba, file size %ld\n", size); ee_printf("dumping into dump.gba, file size %ld\n", size);
for( u8 *p=LGY_ROM_LOC; size > 0; size-=len, p+=len ) for( u8 *p=(u8*)LGY_ROM_LOC; size > 0; size-=len, p+=len )
{ {
res = fWrite( file, p, size < 256 ? size : 256, &len ); res = fWrite( file, p, size < 256 ? size : 256, &len );
if( res != RES_OK ) if( res != RES_OK )
@ -269,7 +269,7 @@ static u32 read_hookpoint_file( void *path, u32 hookpoint[MAX_HOOKPOINT] )
return retval; return retval;
} }
static Result loadGbaRom(const char *const path, u32 *const romSizeOut) static Result loadGbaRom(char * path, u32 *const romSizeOut)
{ {
Result res; Result res;
FHandle f; FHandle f;
@ -516,7 +516,7 @@ static Result searchGbaDb(u64 x, GameDbEntry *const db, s32 *const entryPos)
static u16 getSaveType(u32 romSize, const char *const savePath) static u16 getSaveType(u32 romSize, const char *const savePath)
{ {
FILINFO fi; //FILINFO fi;
const bool saveOverride = g_oafConfig.saveOverride; const bool saveOverride = g_oafConfig.saveOverride;
const u16 autoSaveType = detectSaveType(romSize); const u16 autoSaveType = detectSaveType(romSize);
//const bool saveExists = fStat(savePath, &fi) == RES_OK; //const bool saveExists = fStat(savePath, &fi) == RES_OK;

View File

@ -1,8 +1,12 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <math.h>
#include "types.h" #include "types.h"
#include "fsutil.h"
#include "arm11/pages.h" #include "arm11/pages.h"
#include "arm11/drivers/mcu.h" #include "arm11/drivers/mcu.h"
#include "arm11/fmt.h"
#include "drivers/gfx.h"
atp_error_t disp_str( atp_callerdata_t data, atp_counter_t, atp_linecfg_t *cfg ) atp_error_t disp_str( atp_callerdata_t data, atp_counter_t, atp_linecfg_t *cfg )
{ {