修正剩下的编译失败的地方

This commit is contained in:
anod 2022-10-17 17:57:46 +08:00
parent a5b8ead889
commit 6366d00b4d

View File

@ -145,7 +145,7 @@ extern atp_error_t help_page( atp_text_t *wording, atp_counter_t length );
#define LIGHT_MIN (MCU_getSystemModel() > 3 ? 16 : 20)
#define LIGHT_MAX (MCU_getSystemModel() > 3 ? 142 : 117)
#define SCALER_SIZE 3
static atp_error_t config_item( atp_callerdata_t data, atp_counter_t index, atp_itemcfg_t *cfg )
static atp_error_t config_item( atp_callerdata_t, atp_counter_t index, atp_itemcfg_t *cfg )
{
const char *scaler_val[] = {"上屏无缩放", "上屏GPU放大", "上屏DMA放大", "下屏无缩放"};
const char *savetype_name[] = {"和卡带序列号一致", "读取ROM的特定标记", "汉化带SRAM补丁"};
@ -215,7 +215,7 @@ atp_error_t oaf_config_page()
{
u8 base[sizeof(g_oafConfig)];
memcpy( base, &g_oafConfig, sizeof(g_oafConfig) );
struct OafConfig *prev = &base[0];
struct OafConfig *prev = (struct OafConfig*)&base[0];
atp_error_t res = atp_select( "参数配置", 4, config_item, config_adjust, NULL, 0, 0, NULL );
if( res == ATP_NO_ACTION )