2V2-e.4: render 40250 pack terrain with map lighting

This commit is contained in:
shenlei
2026-09-23 21:19:14 +09:00
parent ac4c2aa4e0
commit cb43091f79
9 changed files with 226 additions and 24 deletions
+5
View File
@@ -332,6 +332,11 @@ static void test_asset_resolver_norm() {
CHECK(AssetResolver::normalize("D:/ymir work/env/./x/../y.tga") == "ymir work/env/y.tga",
"resolver normalize . and ..");
CHECK(AssetResolver::normalize("/foo//bar") == "foo/bar", "resolver normalize // and lead /");
AssetResolver pack;
std::string error;
CHECK(pack.build_or_load("pack://", {}, &error), "40250 virtual pack root needs no directory scan");
CHECK(pack.resolve("D:\\Ymir Work\\Environment\\A.msenv") ==
"pack://d:/ymir work/environment/a.msenv", "pack lookup preserves drive prefix");
}
static void test_spt_tokens() {