mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Revert "remove Lego racers hack"
This reverts commit ca6d6c720f
.
Fixed lego racers: map doesn't appear anymore (regression) #935
This commit is contained in:
parent
6d29070c57
commit
046493e7d3
|
@ -153,6 +153,7 @@ struct Config
|
|||
#define hack_skipVIChangeCheck (1<<11) //Don't reset FBO when VI parameters changed. Zelda MM
|
||||
#define hack_ZeldaCamera (1<<12) //Special hack to detect and process Zelda MM camera.
|
||||
#define hack_ModifyVertexXyInShader (1<<13) //Pass screen coordinates provided in gSPModifyVertex to vertes shader.
|
||||
#define hack_legoRacers (1<<14) //LEGO racers course map
|
||||
|
||||
extern Config config;
|
||||
|
||||
|
|
|
@ -597,7 +597,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())
|
||||
if (m_pCurrent->_isMarioTennisScoreboard() || ((config.generalEmulation.hacks & hack_legoRacers) != 0 && _width == VI.width))
|
||||
g_RDRAMtoFB.CopyFromRDRAM(m_pCurrent->m_startAddress + 4, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -337,6 +337,8 @@ void RSP_Init()
|
|||
strstr(RSP.romname, (const char *)"ZELDA MASTER QUEST") != NULL ||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user