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

Activate hack for WCW Nitro backgrounds.

Currently it is impossible to draw them without hack.

Fixed WCW Nitro: the mysterious wrong textures #179
This commit is contained in:
Sergey Lipskiy 2019-01-12 17:36:01 +07:00
parent dcbea90e76
commit 6135aa9de1
3 changed files with 9 additions and 6 deletions

View File

@ -202,6 +202,7 @@ struct Config
#define hack_RE2 (1<<19) //RE2 hacks.
#define hack_ZeldaMonochrome (1<<20) //Hack for Zeldas monochrome effects.
#define hack_TonyHawk (1<<21) //Hack for Tony Hawk blend mode.
#define hack_WCWNitro (1<<22) //Hack for WCW Nitro backgrounds.
extern Config config;

View File

@ -342,6 +342,8 @@ void RSP_Init()
config.generalEmulation.hacks |= hack_RE2 | hack_ModifyVertexXyInShader | hack_LoadDepthTextures;
else if (strstr(RSP.romname, (const char *)"THPS") != nullptr)
config.generalEmulation.hacks |= hack_TonyHawk;
else if (strstr(RSP.romname, (const char *)"NITRO64") != nullptr)
config.generalEmulation.hacks |= hack_WCWNitro;
api().FindPluginPath(RSP.pluginpath);

View File

@ -2060,15 +2060,15 @@ void gSPSprite2DBase(u32 _base)
f32 lrs = uls + pSprite->imageW - 1;
f32 lrt = ult + pSprite->imageH - 1;
/* Hack for WCW Nitro. TODO : activate it later.
if (WCW_NITRO) {
gSP.bgImage.height /= scaleY;
gSP.bgImage.imageY /= scaleY;
// Hack for WCW Nitro.
if ((config.generalEmulation.hacks & hack_WCWNitro) != 0) {
const u32 scale = u32(scaleY);
gSP.bgImage.height /= scale;
gSP.bgImage.imageY /= scale;
ult /= scaleY;
lrt /= scaleY;
gSP.bgImage.width *= scaleY;
gSP.bgImage.width *= scale;
}
*/
GraphicsDrawer & drawer = dwnd().getDrawer();
drawer.setDMAVerticesSize(4);