Closed tewtal closed 4 years ago
There's a problem in the getState() Lua function that overwrites the scanline count with the H-Clock due to the same name being used in the code.
From LuaApi::GetState:
lua_pushintvalue(scanline, state.Ppu.Scanline);
lua_pushintvalue(scanline, state.Ppu.HClock);
Thanks for the report! This is fixed.
There's a problem in the getState() Lua function that overwrites the scanline count with the H-Clock due to the same name being used in the code.
From LuaApi::GetState:
lua_pushintvalue(scanline, state.Ppu.Scanline);
lua_pushintvalue(scanline, state.Ppu.HClock);