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
@@ -0,0 +1,38 @@
|
||||
// Shared by the asset-backed tests (render_3d, mark_manager, python, window_tree).
|
||||
// They resolve original client paths ("ymir work/...", "locale/...", "mark/...")
|
||||
// against the working directory, like the Windows client root. CTest passes
|
||||
// AVA2_TEST_RUNDIR, a directory built by tools/make_test_rundir.py.
|
||||
#pragma once
|
||||
#include <cstdlib>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
namespace ava2_test {
|
||||
|
||||
// CTest SKIP_RETURN_CODE: the run directory is not available.
|
||||
constexpr int kSkip = 77;
|
||||
|
||||
// Enters AVA2_TEST_RUNDIR when it is set. Returns false when it is set but
|
||||
// missing (the caller should exit kSkip); unset keeps the current directory.
|
||||
inline bool EnterTestRunDir() {
|
||||
const char* rundir = std::getenv("AVA2_TEST_RUNDIR");
|
||||
if (!rundir || !*rundir) return true;
|
||||
std::error_code ec;
|
||||
if (!std::filesystem::is_directory(rundir, ec)) {
|
||||
std::cerr << "SKIP: AVA2_TEST_RUNDIR " << rundir
|
||||
<< " missing; run tools/make_test_rundir.py" << std::endl;
|
||||
return false;
|
||||
}
|
||||
std::filesystem::current_path(rundir, ec);
|
||||
return !ec;
|
||||
}
|
||||
|
||||
// Decoded AVA2 pack_maker tree (Maps/, property/, Sound/...). AVA2_PACK_MAKER
|
||||
// overrides the original developer path.
|
||||
inline std::string PackMaker() {
|
||||
if (const char* env = std::getenv("AVA2_PACK_MAKER"); env && *env) return env;
|
||||
return "/Users/shen/Work/Code/Metin2/AVA2/TEST/1. Client DEV/pack_maker";
|
||||
}
|
||||
|
||||
} // namespace ava2_test
|
||||
Reference in New Issue
Block a user