MaKiPL / FF8_demaster

Unofficial Final Fantasy VIII Remastered core mod based on import-dependency DLL that updates the gamecode and fixes issues left by developers
https://makipl.github.io/FF8_demaster/
GNU General Public License v3.0
101 stars 9 forks source link

InjectMonsterAtlasResolution - not so dynamic at all + uses const addresses, so unusable for JP #79

Open MaKiPL opened 3 months ago

MaKiPL commented 3 months ago

texture.h:28

inline constexpr DWORD DEFAULT_MONSTER_ATLAS_TEX_RESOLUTION = 0x180;

texturepatch_v2_battleHooks.cpp:73

void InjectMonsterAtlasResolution(const DWORD monsterTexResolution)
{
    OutputDebug("InjectMonsterAtlasResolution::Injecting atlas resolution of: %d\n", monsterTexResolution);
    InjectDWORD(IMAGE_BASE + 0x1606D9D+6, monsterTexResolution*2);
    InjectDWORD(IMAGE_BASE + 0x1606DAE+6, monsterTexResolution*2);
    InjectWORD(IMAGE_BASE + 0x16051D1+1, static_cast<WORD>(monsterTexResolution));
}