mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 06:14:12 +08:00
修正编译的警告和错误
This commit is contained in:
parent
d6b1ba5127
commit
7d7d7bed34
@ -4,18 +4,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static void memo( const char *path, const void *buf, uint32_t size )
|
||||
{
|
||||
Result res;
|
||||
FHandle f;
|
||||
if((res = fOpen(&f, path, FA_OPEN_ALWAYS | FA_WRITE)) == RES_OK)
|
||||
{
|
||||
res = fWrite(f, buf, size, NULL);
|
||||
|
||||
fClose(f);
|
||||
}
|
||||
}
|
||||
|
||||
extern Result fReadSize( FHandle file, void *buff, unsigned size, uint32_t *readout );
|
||||
|
||||
typedef struct
|
||||
@ -382,7 +370,7 @@ acl_error_t acl_select_cheat_set( acl_chtid_t id )
|
||||
if( cfg[i].cfgid == id )
|
||||
{
|
||||
offset = config_offset( cfg[i].typeloc );
|
||||
acl_error_t r = init_cheatset( offset );
|
||||
acl_error_t r = init_cheatset( fd, offset );
|
||||
if( r == ACHTLIB_SUCCESS )
|
||||
{
|
||||
found = 1;
|
||||
|
@ -211,8 +211,6 @@ DECLARE_ERROR_PAGE( display_toolong, "路径过长,改名或移动文件后再
|
||||
DECLARE_ERROR_PAGE( display_pathfull, "游戏或目录过量,最多显示999个" )
|
||||
DECLARE_ERROR_PAGE( display_longname, "文件名总计过长,只显示前面的文件" )
|
||||
|
||||
DECLARE_ERROR_PAGE( display_ok, "ok" )
|
||||
|
||||
static atp_error_t display_help( atp_callerdata_t table, atp_counter_t index, atp_linecfg_t *config )
|
||||
{
|
||||
atp_text_t *list = (atp_text_t*)table;
|
||||
|
Loading…
x
Reference in New Issue
Block a user