the cutting room mirror

Os Cavaleiros do Zodíaco

This article has a talk page!This article has a talk page!
view on tcrf.net

This page contains Lua scripts for the game Os Cavaleiros do Zodíaco.

In Mesen, on the Mapper 187 version, this script forces the unused language selection screen to appear instead of the Street Fighter disclaimer.

function freeze()
  bitsRaw = emu.read(0x2000, emu.memType.cpu, false)         -- Get byte with nametable (PPU Control Register #1)
  bits = bitsRaw & 0x03                                      -- Read nametable (D0-D1)
  if bits ~= 1 then                                          -- If nametable isn't #2 (0b01)
    emu.write(0x2000, (bitsRaw & 0xFC) + 2, emu.memType.cpu) -- 
  end
end

--Register some code (freeze function) that will be run at the end of each frame
emu.addEventCallback(freeze, emu.eventType.endFrame)

--Display a startup message
emu.displayMessage("Script", "Freeze Lua script loaded.")