This commit is contained in:
bryanthaboi
2026-08-24 10:10:59 -04:00
parent b89771508e
commit 07c828cab0
2 changed files with 7 additions and 19 deletions
+7 -5
View File
@@ -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()