mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 11:34:59 +08:00
补充 JSON/compact catalog 的 provider ID、bundle name、资源类型、hash、size、CRC 和依赖字段,并贯通 ResourceEntry、SQLite 资源索引和回归 golden。对 compact extra data 与 resource type index 的损坏返回明确错误,不再把 bundle name 当作 hash fallback。\n\n验证:cargo fmt --check;cargo test -p bat-core --locked;cargo test -p bat-adapters --locked;cargo test -p bat-infrastructure --locked;git diff --check。\n\nClippy 仍受既有 core/src/domain/game_client.rs:141 的 needless-question-mark 和 items-after-test-module 基线问题影响,未混入本 issue 修复。\n\nFixes #2
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"m_LocatorId": "AddressablesMainContentCatalog",
|
|
"m_InternalIdPrefixes": [
|
|
"https://fixture.invalid/current/"
|
|
],
|
|
"m_Entries": [
|
|
{
|
|
"internal_id": "TableBundles/ExcelDB.db",
|
|
"hash": "current-table-hash",
|
|
"size": 4096,
|
|
"provider_id": "provider-table",
|
|
"bundle_name": "table-bundle",
|
|
"crc": "305419896",
|
|
"address": "ExcelDB",
|
|
"dependencies": []
|
|
},
|
|
{
|
|
"internal_id": "MediaResources-Windows/voice/title.acb",
|
|
"hash": "current-media-hash",
|
|
"size": 2048,
|
|
"m_ProviderId": "provider-media",
|
|
"m_BundleName": "media-bundle",
|
|
"address": "title",
|
|
"dependencies": []
|
|
},
|
|
{
|
|
"internal_id": "TextAssets/dialogue.csv",
|
|
"hash": "current-text-hash",
|
|
"size": 128,
|
|
"Provider": "provider-text",
|
|
"BundleName": "text-bundle",
|
|
"address": "dialogue",
|
|
"dependencies": []
|
|
},
|
|
{
|
|
"internal_id": "shared_assets_current.bundle",
|
|
"hash": "current-bundle-hash",
|
|
"size": 8192,
|
|
"provider": "provider-bundle",
|
|
"bundleName": "shared-bundle",
|
|
"address": "shared_assets_current",
|
|
"dependencies": [
|
|
"shared_dependencies.bundle"
|
|
]
|
|
}
|
|
]
|
|
}
|