Update mxdiskstreamprovider.cpp

This commit is contained in:
Misha 2023-12-25 09:32:54 -05:00
parent 7022cf97dc
commit d3058ecc17
No known key found for this signature in database
GPG Key ID: 8441D12AEF33FED8

View File

@ -11,7 +11,7 @@
DECOMP_SIZE_ASSERT(MxDiskStreamProvider, 0x60);
// GLOBAL: LEGO1 0x10102878
MxU32 DAT_10102878 = 0;
MxU32 g_unk0x10102878 = 0;
// FUNCTION: LEGO1 0x100d0f30
MxResult MxDiskStreamProviderThread::Run()
@ -113,7 +113,7 @@ MxResult MxDiskStreamProvider::FUN_100d1780(MxDSStreamingAction* p_action)
}
if (p_action->GetUnknowna0()->GetWriteOffset() < 0x20000) {
DAT_10102878++;
g_unk0x10102878++;
}
{
@ -138,9 +138,8 @@ void MxDiskStreamProvider::PerformWork()
// FUNCTION: LEGO1 0x100d1af0
MxBool MxDiskStreamProvider::FUN_100d1af0(MxDSStreamingAction* p_action)
{
if (p_action->GetUnknowna0()->GetWriteOffset() == 0x20000)
{
return DAT_10102878 == 0;
if (p_action->GetUnknowna0()->GetWriteOffset() == 0x20000) {
return g_unk0x10102878 == 0;
}
return TRUE;