From f5b0353ff85a5b7de88bcd49e36d7ebb02f5fbd5 Mon Sep 17 00:00:00 2001 From: Martin Oglesby Date: Fri, 18 Jun 2021 23:31:17 +0100 Subject: [PATCH] Changed ICs detection to detect a duo char correctly Yea what the title said --- PowerPC Assembly Functions/Control Codes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerPC Assembly Functions/Control Codes.cpp b/PowerPC Assembly Functions/Control Codes.cpp index d922055..6de0033 100644 --- a/PowerPC Assembly Functions/Control Codes.cpp +++ b/PowerPC Assembly Functions/Control Codes.cpp @@ -660,7 +660,7 @@ void AddNewCharacterBuffer() ADDI(reg2, EntityReg, 0x34); RLWINM(reg1, reg1, 3, 0, 31); //*=8 LWZX(3, reg2, reg1); - SetRegister(IsPopoReg, 0x10); + SetRegister(IsPopoReg, 0x2); int Start = GetNextLabel(); Label(Start); @@ -751,7 +751,7 @@ void AddNewCharacterBuffer() CreateDIBuffer(CharacterBufferReg, reg2, reg3, reg4); } - LWZ(reg1, EntityReg, 0x5C); + LWB(reg1, EntityReg, 0xE); If(reg1, EQUAL, IsPopoReg); { //is ice climbers, and first run through LWZ(3, EntityReg, 0x3C); //get nana module @@ -994,4 +994,4 @@ void AddLegalStagesToArray(int StageListReg, int LegalStageHighMaskReg, int Lega }EndIf(); }EndWhile(); } -#endif \ No newline at end of file +#endif