From 8a5baf24905210abde4d4890af2cd8e7c967185f Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Thu, 27 Oct 2022 18:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=B1=8F=E7=9A=84gamma=E6=9C=AA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=EF=BC=8C=E9=9C=80=E8=A6=81fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 1fd5192..f1719e7 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -156,9 +156,7 @@ atp_text_t CONFIG_OUTPUT = "[general]\n" \ "brightness=0.0\n\n" \ "[advanced]\n" \ "saveOverride=false\n" \ - "defaultSave=14\n" \ - "[by-anod]\n" \ - "savePolicy=0\n"; + "defaultSave=14"; extern atp_error_t help_page( atp_text_t *wording, atp_counter_t length ); @@ -577,7 +575,7 @@ static u16 getSaveType(u32 romSize, const char *const savePath) FILINFO fi; const bool saveOverride = g_oafConfig.saveOverride; const u16 autoSaveType = detectSaveType(romSize); - const bool saveExists = fStat(savePath, &fi) == RES_OK; + //const bool saveExists = fStat(savePath, &fi) == RES_OK; u64 sha1[3]; sha((u32*)ROM_LOC, romSize, (u32*)sha1, SHA_IN_BIG | SHA_1_MODE, SHA_OUT_BIG); @@ -698,6 +696,7 @@ static void adjustGammaTableForGba(void) // Same adjustment for red/green/blue. REG_LCD_PDC0_GTBL_FIFO = res<<16 | res<<8 | res; + REG_LCD_PDC1_GTBL_FIFO = res<<16 | res<<8 | res; } } @@ -822,11 +821,6 @@ static int cfgIniCallback(void* user, const char* section, const char* name, con if(strcmp(name, "defaultSave") == 0) config->defaultSave = (u16)strtoul(value, NULL, 10); } - else if( strcmp(section, "by-anod") == 0 ) - { - if(strcmp(name, "savePolicy") == 0) - config->savePolicy = (u8)strtoul(value, NULL, 10); - } else return 0; // Error. return 1; // 1 is no error? Really?