2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-12 06:55:07 +00:00

Fix cooking new world/area data without an underscore in the name

This commit is contained in:
2021-05-30 23:10:59 -07:00
parent 27f25223fb
commit 137e96c732
7 changed files with 12 additions and 12 deletions

View File

@@ -291,7 +291,7 @@ bool ReadMAPAToBlender(hecl::blender::Connection& conn, const MAPA& mapa, const
/* World background */
hecl::ProjectPath worldDir = outPath.getParentPath().getParentPath();
for (const auto& ent : hecl::DirectoryEnumerator(worldDir.getAbsolutePath())) {
if (hecl::StringUtils::BeginsWith(ent.m_name, _SYS_STR("!world_")) &&
if (hecl::StringUtils::BeginsWith(ent.m_name, _SYS_STR("!world")) &&
hecl::StringUtils::EndsWith(ent.m_name, _SYS_STR(".blend"))) {
hecl::SystemUTF8Conv conv(ent.m_name);
os.linkBackground(fmt::format(FMT_STRING("//../{}"), conv), "World"sv);