mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-10-19 13:05:20 +00:00
fix: not being able to load zones without progress
This commit is contained in:
@@ -30,7 +30,7 @@ using namespace IW4;
|
|||||||
|
|
||||||
bool ObjWriter::DumpZone(AssetDumpingContext& context) const
|
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)) \
|
if (assetPools->poolName && ObjWriting::ShouldHandleAssetType(dumperType::AssetType_t::EnumEntry)) \
|
||||||
{ \
|
{ \
|
||||||
dumpers.emplace_back(std::make_unique<dumperType>(*assetPools->poolName)); \
|
dumpers.emplace_back(std::make_unique<dumperType>(*assetPools->poolName)); \
|
||||||
|
@@ -60,6 +60,7 @@ namespace
|
|||||||
m_block_shift(pointerBitCount - blockBitCount),
|
m_block_shift(pointerBitCount - blockBitCount),
|
||||||
m_offset_mask(std::numeric_limits<uintptr_t>::max() >> (sizeof(uintptr_t) * 8 - (pointerBitCount - blockBitCount))),
|
m_offset_mask(std::numeric_limits<uintptr_t>::max() >> (sizeof(uintptr_t) * 8 - (pointerBitCount - blockBitCount))),
|
||||||
m_last_fill_size(0),
|
m_last_fill_size(0),
|
||||||
|
m_has_progress_callback(false),
|
||||||
m_progress_current_size(0uz),
|
m_progress_current_size(0uz),
|
||||||
m_progress_total_size(0uz)
|
m_progress_total_size(0uz)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user