From ca6d6c720ff2c764c39545ea4a20545eb680832e Mon Sep 17 00:00:00 2001 From: purplemarshmallow Date: Sat, 2 Jan 2016 13:42:50 +0100 Subject: [PATCH] remove Lego racers hack it's no longer needed because of commit 1466e162f354d0403f111f0d356278f58a5d49ab --- src/Config.h | 1 - src/FrameBuffer.cpp | 2 +- src/RSP.cpp | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Config.h b/src/Config.h index 23fc62b2..30fe2aa9 100644 --- a/src/Config.h +++ b/src/Config.h @@ -122,7 +122,6 @@ struct Config #define hack_scoreboardJ (1<<4) //Copy data from RDRAM to auxilary frame buffer. Scoreboard in Mario Tennis (J). #define hack_pilotWings (1<<5) //Special blend mode for PilotWings. #define hack_subscreen (1<<6) //Fix subscreen delay in Zelda OOT and Doubutsu no Mori -#define hack_legoRacers (1<<7) //LEGO racers course map #define hack_blastCorps (1<<8) //Blast Corps black polygons #define hack_ignoreVIHeightChange (1<<9) //Do not reset FBO when VI height is changed. Space Invaders need it. #define hack_VIUpdateOnCIChange (1<<10) //Update frame if color buffer changed. Needed for Quake II underwater. diff --git a/src/FrameBuffer.cpp b/src/FrameBuffer.cpp index 3ac60d72..7dd3ae6d 100644 --- a/src/FrameBuffer.cpp +++ b/src/FrameBuffer.cpp @@ -493,7 +493,7 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt buffer.init(_address, endAddress, _format, _size, _width, _height, _cfb); m_pCurrent = &buffer; - if (m_pCurrent->_isMarioTennisScoreboard() || ((config.generalEmulation.hacks & hack_legoRacers) != 0 && _width == VI.width)) + if (m_pCurrent->_isMarioTennisScoreboard()) g_RDRAMtoFB.CopyFromRDRAM(m_pCurrent->m_startAddress + 4, false); } diff --git a/src/RSP.cpp b/src/RSP.cpp index cd448df0..5b2b090b 100644 --- a/src/RSP.cpp +++ b/src/RSP.cpp @@ -319,8 +319,6 @@ void RSP_Init() strstr(RSP.romname, (const char *)"DOUBUTSUNOMORI") != NULL ) config.generalEmulation.hacks |= hack_subscreen; - else if (strstr(RSP.romname, (const char *)"LEGORacers") != NULL) - config.generalEmulation.hacks |= hack_legoRacers; else if (strstr(RSP.romname, (const char *)"Blast") != NULL) config.generalEmulation.hacks |= hack_blastCorps; else if (strstr(RSP.romname, (const char *)"SPACE INVADERS") != NULL)