1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Add hack for LEGO racers course map:

copy RDRAM content to new buffer.

Fixed issue #314
This commit is contained in:
Sergey Lipskiy 2015-04-04 18:58:24 +06:00
parent ebc5d5bef3
commit 9a556978ba
3 changed files with 4 additions and 2 deletions

View File

@ -99,6 +99,7 @@ struct Config
#define hack_scoreboard (1<<3) //Copy data from RDRAM to auxilary frame buffer. Scoreboard in Mario Tennis. #define hack_scoreboard (1<<3) //Copy data from RDRAM to auxilary frame buffer. Scoreboard in Mario Tennis.
#define hack_pilotWings (1<<4) //Special blend mode for PilotWings. #define hack_pilotWings (1<<4) //Special blend mode for PilotWings.
#define hack_subscreen (1<<5) //Fix subscreen delay in Zelda OOT #define hack_subscreen (1<<5) //Fix subscreen delay in Zelda OOT
#define hack_legoRacers (1<<6) //LEGO racers course map
extern Config config; extern Config config;

View File

@ -417,7 +417,7 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt
); );
#endif #endif
if (bMarioTennisScoreboard) if (bMarioTennisScoreboard || ((config.generalEmulation.hacks & hack_legoRacers) != 0 && bNew && _width == VI.width))
g_RDRAMtoFB.CopyFromRDRAM(m_pCurrent->m_startAddress + 4, false); g_RDRAMtoFB.CopyFromRDRAM(m_pCurrent->m_startAddress + 4, false);
m_pCurrent->m_isDepthBuffer = _address == gDP.depthImageAddress; m_pCurrent->m_isDepthBuffer = _address == gDP.depthImageAddress;

View File

@ -327,7 +327,8 @@ void RSP_Init()
strstr(RSP.romname, (const char *)"ZELDA MASTER QUEST") != NULL strstr(RSP.romname, (const char *)"ZELDA MASTER QUEST") != NULL
) )
config.generalEmulation.hacks |= hack_subscreen; config.generalEmulation.hacks |= hack_subscreen;
else if (strstr(RSP.romname, (const char *)"LEGORacers") != NULL)
config.generalEmulation.hacks |= hack_legoRacers;
api().FindPluginPath(RSP.pluginpath); api().FindPluginPath(RSP.pluginpath);