From 188ad88125831169faadd6cd8140eb38aeee970b Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 2 Apr 2009 13:41:04 +0000 Subject: [PATCH] LOL, forgot the check git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2834 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugins/Plugin_DSP_LLE-testing/Src/DSPTables.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPTables.cpp b/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPTables.cpp index 2add50c754..c849bd3aec 100644 --- a/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPTables.cpp +++ b/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPTables.cpp @@ -252,9 +252,13 @@ void InitInstructionTable() opTable[i] = DSPInterpreter::unknown; for(u32 i = 0; i < OPTABLE_SIZE; i++) { - for(u32 j = 0; j < opcodes_size; j++) - if((opcodes[j].opcode_mask & i) == opcodes[j].opcode_mask) - opTable[i] = opcodes[j].interpFunc; + for(u32 j = 0; j < opcodes_size; j++) + if((opcodes[j].opcode_mask & i) == opcodes[j].opcode_mask) { + if (opTable[i] != DSPInterpreter::unknown) + opTable[i] = opcodes[j].interpFunc; + else + ERROR_LOG(DSPHLE, "opcode table place %d already in use for %d", i, j); + } } }