mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-15 07:41:21 +02:00
CLOSES #1091, CLOSES #1097, CLOSES #1100, CLOSES #1104, CLOSES #1135, CLOSES #1155, CLOSES #1157, CLOSES #1158, CLOSES #1159, CLOSES #1160, CLOSES #1167, CLOSES #1208
This commit is contained in:
@@ -51,7 +51,9 @@ check(mainSrc:find("prepareOverlayHandoff", 1, true) ~= nil
|
||||
and mainSrc:find("openTouchControlsEditor", 1, true) ~= nil,
|
||||
"main.lua mentions prepareOverlayHandoff + touch editor")
|
||||
-- prepare must run inside openTouchControlsEditor, not only openEditor
|
||||
local touchOpen = mainSrc:match("local function openTouchControlsEditor%(%)(.-)\nend")
|
||||
-- The signature takes the launcher tab since #1100, so match any parameter
|
||||
-- list rather than pinning the arity.
|
||||
local touchOpen = mainSrc:match("local function openTouchControlsEditor%(.-%)(.-)\nend")
|
||||
check(touchOpen ~= nil, "openTouchControlsEditor body found")
|
||||
check(touchOpen:find("prepareOverlayHandoff", 1, true) ~= nil,
|
||||
"openTouchControlsEditor prepares overlay handoff like the save editor")
|
||||
|
||||
Reference in New Issue
Block a user