测试为何默认无选项会失效

This commit is contained in:
anod 2023-03-09 17:27:34 +08:00
parent bedf6a0389
commit 7942225edc

View File

@ -1,5 +1,6 @@
#include "arm11/acl.h"
#include "arm11/cheat.h"
#include "arm11/fmt.h"
#include "util.h"
#include <stddef.h>
#include <stdlib.h>
@ -420,6 +421,7 @@ static void rom_append_cheatproc( int mode, CodeLocation start, u16 bindkey, u32
cheat_error_t apply_cheat( int mode, u32 szrom, u16 bindkey, u32 storagemem, u32 *outsize )
{
// try ignore patch
debug_printf("see the id: %08x\n", setting.chtId);
if( mode == CHEAT_MODE_DISABLED ) return CCHT_OK;
if( setting.chtId == 0 ) return CCHT_OK;
if( ACHTLIB_SUCCESS != acl_select_cheat_set( setting.chtId ) )