AVA2 client Windows parity passes (gr2 BitKnit2/64-bit, GamePhase handlers, python modules)
- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves - net: remaining GamePhase handlers, generated GC packet table - python: event/chat/chr/minimap/guild/quest/messenger/shop-search and other native modules ported against the AVA2 Windows client - render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain without baked shade; cape/NPC equipment attachment - tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame, camera bindings, main.cpp fake-content removal) is still in progress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9f748eb05a
commit
9077aa389a
@@ -1,6 +1,7 @@
|
||||
// M0 T2 —— section 解压分派。见 docs/reference/steps/M0-gr2-reader.md
|
||||
#include "internal.h"
|
||||
#include "oodle1.h"
|
||||
#include "bitknit2.h"
|
||||
#include <cstring>
|
||||
|
||||
namespace gr2 {
|
||||
@@ -44,10 +45,19 @@ bool File::Impl::decompress_section(const detail::GrnSection& s, const uint8_t*
|
||||
}
|
||||
return true;
|
||||
}
|
||||
case 4: // BitKnit —— 无公开实现(全样本 0 个)
|
||||
out.info.decompress_status = 4;
|
||||
if (err) *err = {"section", "BitKnit unsupported (M0 T2)"};
|
||||
case 3: // BitKnit(v1)—— Granny 2.11 之前的旧格式,AVA2 语料未出现
|
||||
out.info.decompress_status = 3;
|
||||
if (err) *err = {"section", "BitKnit (v1) not implemented"};
|
||||
return false;
|
||||
case 4: { // BitKnit2(Granny 2.11+;AVA2 pc/item 约 90% 的 gr2)
|
||||
out.data.assign(s.expanded_data_size, 0);
|
||||
if (!bitknit2_decompress(src, s.data_size, out.data.data(), out.data.size())) {
|
||||
out.info.decompress_status = 4;
|
||||
if (err) *err = {"section", "BitKnit2 decompress failed"};
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
out.info.decompress_status = -1;
|
||||
if (err) *err = {"section", "unknown compression format"};
|
||||
|
||||
Reference in New Issue
Block a user