mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-10-25 07:45:52 +00:00
feat: report on unlinking progress
This commit is contained in:
@@ -556,14 +556,14 @@ namespace
|
||||
MemoryManager memory;
|
||||
MockSearchPath mockObjPath;
|
||||
MockOutputPath mockOutput;
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath);
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath, std::nullopt);
|
||||
|
||||
AssetPoolDynamic<Material> materialPool(0);
|
||||
|
||||
GivenMaterial("wc/ch_plasterwall_long", materialPool, memory);
|
||||
|
||||
material::JsonDumperIW3 dumper;
|
||||
dumper.DumpPool(context, &materialPool);
|
||||
dumper.DumpPool(context, materialPool);
|
||||
|
||||
const auto* file = mockOutput.GetMockedFile("materials/wc/ch_plasterwall_long.json");
|
||||
REQUIRE(file);
|
||||
|
||||
@@ -537,14 +537,14 @@ namespace
|
||||
MemoryManager memory;
|
||||
MockSearchPath mockObjPath;
|
||||
MockOutputPath mockOutput;
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath);
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath, std::nullopt);
|
||||
|
||||
AssetPoolDynamic<Material> materialPool(0);
|
||||
|
||||
GivenMaterial("mc/ch_rubble01", materialPool, memory);
|
||||
|
||||
material::JsonDumperIW4 dumper;
|
||||
dumper.DumpPool(context, &materialPool);
|
||||
dumper.DumpPool(context, materialPool);
|
||||
|
||||
const auto* file = mockOutput.GetMockedFile("materials/mc/ch_rubble01.json");
|
||||
REQUIRE(file);
|
||||
|
||||
@@ -590,14 +590,14 @@ namespace
|
||||
MemoryManager memory;
|
||||
MockSearchPath mockObjPath;
|
||||
MockOutputPath mockOutput;
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath);
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath, std::nullopt);
|
||||
|
||||
AssetPoolDynamic<Material> materialPool(0);
|
||||
|
||||
GivenMaterial("wc/me_metal_rust_02", materialPool, memory);
|
||||
|
||||
material::JsonDumperIW5 dumper;
|
||||
dumper.DumpPool(context, &materialPool);
|
||||
dumper.DumpPool(context, materialPool);
|
||||
|
||||
const auto* file = mockOutput.GetMockedFile("materials/wc/me_metal_rust_02.json");
|
||||
REQUIRE(file);
|
||||
|
||||
@@ -619,14 +619,14 @@ namespace
|
||||
MemoryManager memory;
|
||||
MockSearchPath mockObjPath;
|
||||
MockOutputPath mockOutput;
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath);
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath, std::nullopt);
|
||||
|
||||
AssetPoolDynamic<Material> materialPool(0);
|
||||
|
||||
GivenMaterial("mc/ch_rubble01", materialPool, memory);
|
||||
|
||||
material::JsonDumperT5 dumper;
|
||||
dumper.DumpPool(context, &materialPool);
|
||||
dumper.DumpPool(context, materialPool);
|
||||
|
||||
const auto* file = mockOutput.GetMockedFile("materials/mc/ch_rubble01.json");
|
||||
REQUIRE(file);
|
||||
|
||||
@@ -146,13 +146,13 @@ namespace
|
||||
MemoryManager memory;
|
||||
MockSearchPath mockObjPath;
|
||||
MockOutputPath mockOutput;
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath);
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath, std::nullopt);
|
||||
|
||||
AssetPoolDynamic<FontIcon> fontIconPool(0);
|
||||
GivenFontIcon("fonticon/test.csv", fontIconPool, memory);
|
||||
|
||||
font_icon::JsonDumperT6 dumper;
|
||||
dumper.DumpPool(context, &fontIconPool);
|
||||
dumper.DumpPool(context, fontIconPool);
|
||||
|
||||
const auto* file = mockOutput.GetMockedFile("fonticon/test.json");
|
||||
REQUIRE(file);
|
||||
|
||||
@@ -467,13 +467,13 @@ namespace
|
||||
MemoryManager memory;
|
||||
MockSearchPath mockObjPath;
|
||||
MockOutputPath mockOutput;
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath);
|
||||
AssetDumpingContext context(zone, "", mockOutput, mockObjPath, std::nullopt);
|
||||
|
||||
AssetPoolDynamic<Material> materialPool(0);
|
||||
GivenMaterial("wpc/metal_ac_duct", materialPool, memory);
|
||||
|
||||
material::JsonDumperT6 dumper;
|
||||
dumper.DumpPool(context, &materialPool);
|
||||
dumper.DumpPool(context, materialPool);
|
||||
|
||||
const auto* file = mockOutput.GetMockedFile("materials/wpc/metal_ac_duct.json");
|
||||
REQUIRE(file);
|
||||
|
||||
Reference in New Issue
Block a user