mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 22:04:10 +08:00
修正编译警告
This commit is contained in:
parent
0fb04f0989
commit
ee1b82ae8e
@ -62,7 +62,6 @@ cheat_error_t overwrite_current_cheat( acl_entryid_t id, u16 value )
|
||||
if( setting.chtId == 0 ) return CCHT_NOT_INIT;
|
||||
|
||||
u16 index = ENT_HOLE(id);
|
||||
u16 option = ENT_KEY(id);
|
||||
if( index == 0 ) return CCHT_INVALID;
|
||||
|
||||
if( index <= setting.entLen )
|
||||
@ -436,7 +435,7 @@ static void rom_append_cheatproc( int mode, CodeLocation start, u16 bindkey, u32
|
||||
{
|
||||
if( (j < 4) && (j & 1) )
|
||||
{
|
||||
u8 *p = start++;
|
||||
u8 *p = (u8*)start++;
|
||||
acl_entry_get_armcode(j, (u32*)p);
|
||||
*p = j>1 ? val >> 8 : val & 0xff;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user