mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-25 06:55:29 +02:00
fixerino
This commit is contained in:
@@ -204,20 +204,6 @@ local ROWS = {
|
||||
text = function(options)
|
||||
return require("src.render.GbcPalette").modeLabel(options.color or "gbc")
|
||||
end },
|
||||
{ label = Strings.source("GBC FX"), key = "gbcfx", port = true,
|
||||
cycle = function(options, delta)
|
||||
local GBCFX = require("src.render.GBCFX")
|
||||
if not GBCFX.isSupported() then
|
||||
options.gbcfx = 0
|
||||
return
|
||||
end
|
||||
local level = ((options.gbcfx or 0) + delta) % 5
|
||||
options.gbcfx = level
|
||||
GBCFX.setLevel(level)
|
||||
end,
|
||||
text = function(options)
|
||||
return require("src.render.GBCFX").levelLabel(options.gbcfx or 0)
|
||||
end },
|
||||
-- SHADER FX reaches Gen 2 too, not just Gen 1. Same "activate" shape as
|
||||
-- CONTROLS/TOUCH LAYOUT below (a pushed screen, not a `cycle` ladder) --
|
||||
-- ShaderFXScreen is the shared list screen both generations push, `id`
|
||||
|
||||
@@ -147,9 +147,12 @@ eq(#unexplained, 0,
|
||||
|
||||
-- ------- 7. the Crystal-only assets the completeness gate pins
|
||||
|
||||
local importerSource = assert(io.open("src/import/RomImporter.lua", "r"))
|
||||
local importerText = importerSource:read("*a")
|
||||
importerSource:close()
|
||||
local CacheContract = require("src.import.CacheContract")
|
||||
local requiredFiles, isOverride = CacheContract.requiredFilesFor("crystal")
|
||||
check(isOverride, "crystal has its own required-file list")
|
||||
|
||||
local required = {}
|
||||
for _, path in ipairs(requiredFiles) do required[path] = true end
|
||||
for _, path in ipairs({
|
||||
"assets/generated/title/crystal_logo.png",
|
||||
"assets/generated/title/crystal_wordmark.png",
|
||||
@@ -158,8 +161,7 @@ for _, path in ipairs({
|
||||
"assets/generated/intro/chris.png",
|
||||
"assets/generated/intro/kris.png",
|
||||
}) do
|
||||
check(importerText:find(path, 1, true) ~= nil,
|
||||
"RomImporter still requires " .. path)
|
||||
check(required[path], "the crystal cache contract still requires " .. path)
|
||||
end
|
||||
|
||||
S.finish()
|
||||
|
||||
Reference in New Issue
Block a user