Files
gen1recomp/tests/drivers/gold_splash_skip.lua
T
bryanthaboi 1905261c5b Spider Car Unleashed
CLOSES #1483, CLOSES #1610, CLOSES #1615, CLOSES #1646, CLOSES #1649, CLOSES #1651, CLOSES #1653, CLOSES #1656, CLOSES #1683, CLOSES #1685, CLOSES #1686, CLOSES #1687, CLOSES #1688, CLOSES #1689, CLOSES #1690, CLOSES #1693, CLOSES #1694, CLOSES #1695, CLOSES #1696, CLOSES #1702, CLOSES #1704, CLOSES #1705, CLOSES #1706, CLOSES #1707, CLOSES #1708, CLOSES #1710, CLOSES #1711, CLOSES #1712, CLOSES #1713, CLOSES #1716, CLOSES #1717, CLOSES #1718, CLOSES #1719, CLOSES #1720, CLOSES #1721, CLOSES #1725, CLOSES #1732, CLOSES #1745, CLOSES #1748, CLOSES #1749, CLOSES #1751, CLOSES #1754
2026-08-24 07:52:05 -04:00

43 lines
1.5 KiB
Lua

-- A button during the GS splash skips the intro movie
-- (pokegold engine/menus/intro_menu.asm:848-851 IntroSequence).
local U = require("tests.drivers.util")
local GameFreakPresents = require("src.ui.gen2.GameFreakPresents")
local GoldSilverIntro = require("src.ui.gen2.GoldSilverIntro")
local TitleState = require("src.ui.gen2.TitleState")
return function(game)
local out = os.getenv("POKEPORT_SHOT_DIR") or "/tmp/gold-splash"
U.wait(10)
game:showGameFreak()
U.wait(5)
assert(getmetatable(game.stack:top()) == GameFreakPresents,
"showGameFreak did not open the GS splash (top "
.. tostring(game.stack:top()) .. ")")
U.wait(40)
U.shot(game, out .. "/splash.png")
U.tap(game, "b")
for _ = 1, 60 do
if getmetatable(game.stack:top()) == TitleState then break end
assert(getmetatable(game.stack:top()) ~= GoldSilverIntro,
"a skipped splash still played the intro movie")
U.wait(1)
end
assert(getmetatable(game.stack:top()) == TitleState,
"a skipped splash did not land on the title (top "
.. tostring(game.stack:top()) .. ")")
U.wait(30)
U.shot(game, out .. "/title.png")
-- Watched through, the splash still hands off to the movie.
game:showGameFreak()
for _ = 1, 900 do
if getmetatable(game.stack:top()) == GoldSilverIntro then break end
U.wait(5)
end
assert(getmetatable(game.stack:top()) == GoldSilverIntro,
"a watched splash did not hand off to the intro movie (top "
.. tostring(game.stack:top()) .. ")")
U.log("PASS gold splash skip in " .. out)
end