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

add hack for framebuffer emulation in Pokemon Snap

This commit is contained in:
purplemarshmallow 2016-11-29 20:30:54 +01:00 committed by Sergey Lipskiy
parent 807622f7bf
commit d43148bc9e
3 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);