diff --git a/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp b/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp index 5077c856bb..a52137d952 100644 --- a/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp +++ b/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp @@ -114,7 +114,7 @@ void CARCodeAddEdit::SaveCheatData(wxCommandEvent& WXUNUSED (event)) if (line != std::string::npos && cheatValues.length() > (line+17)) bWhile = true; // newline found, if not empty, go on - line += 2; + line++; } if (selection == -1) diff --git a/Source/Core/VideoCommon/Src/BPMemory.h b/Source/Core/VideoCommon/Src/BPMemory.h index 33a672b5eb..441a427590 100644 --- a/Source/Core/VideoCommon/Src/BPMemory.h +++ b/Source/Core/VideoCommon/Src/BPMemory.h @@ -29,6 +29,7 @@ #define BPMEM_ZMODE 0x40 #define BPMEM_BLENDMODE 0x41 #define BPMEM_CONSTANTALPHA 0x42 +#define BPMEM_PE_CONTROL 0x43 #define BPMEM_SETDRAWDONE 0x45 #define BPMEM_TRIGGER_EFB_COPY 0x52 #define BPMEM_ALPHACOMPARE 0xF3 diff --git a/Source/Plugins/Plugin_VideoOGL/Src/BPStructs.cpp b/Source/Plugins/Plugin_VideoOGL/Src/BPStructs.cpp index 481b52603c..5440047e7d 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/BPStructs.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/BPStructs.cpp @@ -169,7 +169,7 @@ void BPWritten(int addr, int changes, int newval) break; } - case 0x43: // ???? + case BPMEM_PE_CONTROL: // GXSetZCompLoc, GXPixModeSync if (changes) { VertexManager::Flush(); ((u32*)&bpmem)[addr] = newval;