mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
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:
@@ -1361,8 +1361,7 @@
|
||||
["라인랩가드", "莱茵卫士"],
|
||||
["빙하기", "冰川期"],
|
||||
["울창한정글", "丛林密布"],
|
||||
["기동대", "机动队"],
|
||||
["", " "]
|
||||
["기동대", "机动队"]
|
||||
]
|
||||
},
|
||||
"BattleQuickFormationFilter-Cost": {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user