From 2b48640441572cb88a9c66b38097b16a94868f1a Mon Sep 17 00:00:00 2001 From: omegadox Date: Sat, 21 Feb 2009 23:56:10 +0000 Subject: [PATCH] small cleanup in OGL/VideoCommon and small fix to ARCodeAddEdit by slink git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2346 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp | 2 +- Source/Core/VideoCommon/Src/BPMemory.h | 1 + Source/Plugins/Plugin_VideoOGL/Src/BPStructs.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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;