Files
gen1recomp/tests/fixture_data/game3_map_sections.lua
T
bryanthaboi dee935a4ea CLOSES #2430
2026-09-23 11:58:32 -04:00

15 lines
413 B
Lua

local M = {}
function M.install(overrides)
local MapSections = require("src.import.gba.map_sections_extract")
if pcall(MapSections.ensureGenerated) then return false end
local names = {}
for secId, info in pairs(MapSections.SECTIONS) do
names[secId] = (overrides and overrides[secId]) or info.id:gsub("^MAPSEC_", ""):gsub("_", " ")
end
MapSections.installNames(names)
return true
end
return M