mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-25 23:11:15 +02:00
fixerino
This commit is contained in:
@@ -204,20 +204,6 @@ local ROWS = {
|
|||||||
text = function(options)
|
text = function(options)
|
||||||
return require("src.render.GbcPalette").modeLabel(options.color or "gbc")
|
return require("src.render.GbcPalette").modeLabel(options.color or "gbc")
|
||||||
end },
|
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
|
-- 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) --
|
-- CONTROLS/TOUCH LAYOUT below (a pushed screen, not a `cycle` ladder) --
|
||||||
-- ShaderFXScreen is the shared list screen both generations push, `id`
|
-- 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
|
-- ------- 7. the Crystal-only assets the completeness gate pins
|
||||||
|
|
||||||
local importerSource = assert(io.open("src/import/RomImporter.lua", "r"))
|
local CacheContract = require("src.import.CacheContract")
|
||||||
local importerText = importerSource:read("*a")
|
local requiredFiles, isOverride = CacheContract.requiredFilesFor("crystal")
|
||||||
importerSource:close()
|
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({
|
for _, path in ipairs({
|
||||||
"assets/generated/title/crystal_logo.png",
|
"assets/generated/title/crystal_logo.png",
|
||||||
"assets/generated/title/crystal_wordmark.png",
|
"assets/generated/title/crystal_wordmark.png",
|
||||||
@@ -158,8 +161,7 @@ for _, path in ipairs({
|
|||||||
"assets/generated/intro/chris.png",
|
"assets/generated/intro/chris.png",
|
||||||
"assets/generated/intro/kris.png",
|
"assets/generated/intro/kris.png",
|
||||||
}) do
|
}) do
|
||||||
check(importerText:find(path, 1, true) ~= nil,
|
check(required[path], "the crystal cache contract still requires " .. path)
|
||||||
"RomImporter still requires " .. path)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
S.finish()
|
S.finish()
|
||||||
|
|||||||
Reference in New Issue
Block a user