mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
add hack for framebuffer emulation in Pokemon Snap
This commit is contained in:
parent
807622f7bf
commit
d43148bc9e
|
@ -193,6 +193,7 @@ struct Config
|
|||
#define hack_legoRacers (1<<14) //LEGO racers course map
|
||||
#define hack_doNotResetTLUTmode (1<<15) //Don't set TLUT mode to none after dlist end. Quake 64
|
||||
#define hack_LoadDepthTextures (1<<16) //Load textures for depth buffer
|
||||
#define hack_Snap (1<<17) //Frame buffer settings for camera detection in Pokemon Snap. Copy aux buffers at fullsync
|
||||
|
||||
extern Config config;
|
||||
|
||||
|
|
|
@ -571,7 +571,7 @@ FrameBuffer * FrameBufferList::findTmpBuffer(u32 _address)
|
|||
|
||||
void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _width, u16 _height, bool _cfb)
|
||||
{
|
||||
if (m_pCurrent != nullptr && config.frameBufferEmulation.copyAuxToRDRAM != 0) {
|
||||
if (m_pCurrent != nullptr && config.frameBufferEmulation.copyAuxToRDRAM != 0 && (config.generalEmulation.hacks & hack_Snap) == 0) {
|
||||
if (m_pCurrent->isAuxiliary()) {
|
||||
FrameBuffer_CopyToRDRAM(m_pCurrent->m_startAddress, true);
|
||||
removeBuffer(m_pCurrent->m_startAddress);
|
||||
|
|
|
@ -360,6 +360,8 @@ void RSP_Init()
|
|||
else if (strstr(RSP.romname, (const char *)"WIN BACK") != nullptr ||
|
||||
strstr(RSP.romname, (const char *)"OPERATION WINBACK") != nullptr)
|
||||
config.generalEmulation.hacks |= hack_WinBack;
|
||||
else if (strstr(RSP.romname, (const char *)"POKEMON SNAP") != nullptr)
|
||||
config.generalEmulation.hacks |= hack_Snap;
|
||||
|
||||
api().FindPluginPath(RSP.pluginpath);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user