2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-10-18 20:45:19 +00:00

fix: not being able to load zones without progress

This commit is contained in:
Jan Laupetin
2025-10-15 21:28:03 +01:00
parent 6a84d1ea68
commit b35973db8a
2 changed files with 2 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ using namespace IW4;
bool ObjWriter::DumpZone(AssetDumpingContext& context) const
{
#define REGISTER_DUMPER(dumperType, poolName) \
#define REGISTER_DUMPER(dumperType, poolName) \
if (assetPools->poolName && ObjWriting::ShouldHandleAssetType(dumperType::AssetType_t::EnumEntry)) \
{ \
dumpers.emplace_back(std::make_unique<dumperType>(*assetPools->poolName)); \

View File

@@ -60,6 +60,7 @@ namespace
m_block_shift(pointerBitCount - blockBitCount),
m_offset_mask(std::numeric_limits<uintptr_t>::max() >> (sizeof(uintptr_t) * 8 - (pointerBitCount - blockBitCount))),
m_last_fill_size(0),
m_has_progress_callback(false),
m_progress_current_size(0uz),
m_progress_total_size(0uz)
{