port 2D step 2: 40250 item_proto/mob_proto through CLZO and pack://locale/<lang>/
proto.cpp reads the 40250 MIPX/MMPT tables with the ported CLZO/TEA (156-byte TItemTable, 255-byte SMobTable), replacing the m2dev XChaCha20 236/335 reader. Names follow CItemData::GetName / GetMonsterName (szLocaleName, cp1252). GDScript callers load AssetRoot.locale_file() = pack://locale/en/<name>, which makes the EterPack chain runtime-reachable; port-map entries for the functions a coverage run hit move to PORTED/ADAPTED. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -175,8 +175,8 @@ func _run() -> void:
|
||||
var audio: Node = Audio.new()
|
||||
get_root().add_child(audio)
|
||||
audio.setup(assets)
|
||||
var mp := assets.path_join("locale/locale/en/mob_proto")
|
||||
if not FileAccess.file_exists(mp) or not proto.call("load_mob_proto", mp):
|
||||
var mp := AssetRoot.locale_file("mob_proto")
|
||||
if mp == "" or not proto.call("load_mob_proto", mp):
|
||||
print(" (skip: 无 mob_proto)")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user