fix: skip blank stages in KR replacement on ResoureUpdater (#13045)

* fix: skip blank stages in KR replacement on ResoureUpdater

* docs: simple commenting

---------

Co-authored-by: Constrat <56174894+Constrat@users.noreply.github.com>
This commit is contained in:
HX3N
2025-06-21 04:53:56 +09:00
committed by GitHub
parent e604504fc4
commit 2709c660db
2 changed files with 6 additions and 2 deletions

View File

@@ -1361,8 +1361,7 @@
["라인랩가드", "莱茵卫士"],
["빙하기", "冰川期"],
["울창한정글", "丛林密布"],
["기동대", "机动队"],
["", " "]
["기동대", "机动队"]
]
},
"BattleQuickFormationFilter-Cost": {

View File

@@ -1316,8 +1316,13 @@ bool ocr_replace_overseas(const fs::path& input_dir, const fs::path& tasks_base_
}
name_buffer = stage_obj["name"].as_string();
// ko-kr requires space removal
if (remove_spaces) {
name_buffer.erase(std::remove(name_buffer.begin(), name_buffer.end(), ' '), name_buffer.end());
// ro4_b_9 is blank for all clients so we skip it
if (name_buffer.empty()) {
continue;
}
}
stage_names.emplace(id, name_buffer);
}