mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
fixes
This commit is contained in:
parent
56a22daf64
commit
21dae8bb41
@ -72,38 +72,44 @@ MxResult MxDiskStreamController::VTable0x30(MxDSAction* p_action)
|
|||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100c7f4
|
// FUNCTION: LEGO1 0x100c7f40
|
||||||
void MxDiskStreamController::FUN_100c7f4(MxDSStreamingAction* p_streamingaction)
|
void MxDiskStreamController::FUN_100c7f40(MxDSStreamingAction* p_streamingaction)
|
||||||
{
|
{
|
||||||
// TODO
|
MxAutoLocker lock(&this->m_criticalSection);
|
||||||
// seems to do something with a list
|
if (p_streamingaction) {
|
||||||
|
m_list0x64.push_back(p_streamingaction);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100c7ff0
|
// FUNCTION: LEGO1 0x100c7ff0
|
||||||
MxResult MxDiskStreamController::VTable0x20(MxDSAction* p_action)
|
MxResult MxDiskStreamController::VTable0x20(MxDSAction* p_action)
|
||||||
{
|
{
|
||||||
MxAutoLocker lock(&this->m_criticalSection);
|
|
||||||
MxResult result;
|
MxResult result;
|
||||||
MxDSStreamingAction* entry = (MxDSStreamingAction*)m_list0x80.Find(p_action, FALSE); // TODO: is this a seperate class?
|
MxAutoLocker lock(&this->m_criticalSection);
|
||||||
|
MxDSStreamingAction* entry =
|
||||||
|
(MxDSStreamingAction*) m_list0x80.Find(p_action, FALSE); // TODO: is this a seperate class?
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
result = MxStreamController::VTable0x20((MxDSAction*)p_action);
|
result = MxStreamController::VTable0x20((MxDSAction*) p_action);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
MxDSStreamingAction* action = new MxDSStreamingAction(*p_action, 0);
|
MxDSStreamingAction* action = new MxDSStreamingAction(*p_action, 0);
|
||||||
|
action->SetUnknown28(entry->GetUnknown28());
|
||||||
action->SetUnknown84(entry->GetUnknown84());
|
action->SetUnknown84(entry->GetUnknown84());
|
||||||
action->SetUnknown8c(entry->GetUnknown8c());
|
action->SetOrigin(entry->GetOrigin());
|
||||||
action->SetUnknowna0(entry->GetUnknowna0());
|
action->SetUnknowna0(entry->GetUnknowna4());
|
||||||
|
|
||||||
FUN_100c7f4(action);
|
FUN_100c7f40(action);
|
||||||
result = vtable0x2c(p_action, action->GetBufferOffset());
|
result = VTable0x2c(p_action, action->GetBufferOffset());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == SUCCESS)
|
if (result == SUCCESS) {
|
||||||
{
|
return FAILURE;
|
||||||
m_unk70 = 1;
|
}
|
||||||
m_unkc4 = 1;
|
else {
|
||||||
|
m_unk0x70 = 1;
|
||||||
|
m_unk0xc4 = 1;
|
||||||
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100c8160
|
// STUB: LEGO1 0x100c8160
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
#include "mxstl/stlcompat.h"
|
#include "mxstl/stlcompat.h"
|
||||||
#include "mxstreamcontroller.h"
|
#include "mxstreamcontroller.h"
|
||||||
#include "mxtypes.h"
|
#include "mxtypes.h"
|
||||||
|
#include "mxdsstreamingaction.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -49,7 +50,7 @@ class MxDiskStreamController : public MxStreamController {
|
|||||||
MxStreamListMxDSAction m_list0xb8; // 0xb8
|
MxStreamListMxDSAction m_list0xb8; // 0xb8
|
||||||
undefined m_unk0xc4; // 0xc4
|
undefined m_unk0xc4; // 0xc4
|
||||||
|
|
||||||
void FUN_100c7f4(MxDSStreamingAction* p_streamingaction);
|
void FUN_100c7f40(MxDSStreamingAction* p_streamingaction);
|
||||||
};
|
};
|
||||||
|
|
||||||
// TEMPLATE: LEGO1 0x100c7330
|
// TEMPLATE: LEGO1 0x100c7330
|
||||||
|
|||||||
@ -63,7 +63,7 @@ class MxDSAction : public MxDSObject {
|
|||||||
inline MxS32 GetLoopCount() { return m_loopCount; }
|
inline MxS32 GetLoopCount() { return m_loopCount; }
|
||||||
inline void SetLoopCount(MxS32 p_loopCount) { m_loopCount = p_loopCount; }
|
inline void SetLoopCount(MxS32 p_loopCount) { m_loopCount = p_loopCount; }
|
||||||
inline const Vector3Data& GetLocation() const { return m_location; }
|
inline const Vector3Data& GetLocation() const { return m_location; }
|
||||||
inline MxCore* GetUnknown84() const { return m_unk84; }
|
inline MxCore* GetUnknown84() { return m_unk0x84; }
|
||||||
inline void SetUnknown84(MxCore* p_unk0x84) { m_unk0x84 = p_unk0x84; }
|
inline void SetUnknown84(MxCore* p_unk0x84) { m_unk0x84 = p_unk0x84; }
|
||||||
inline MxCore* GetOrigin() { return m_origin; }
|
inline MxCore* GetOrigin() { return m_origin; }
|
||||||
inline void SetOrigin(MxCore* p_origin) { m_origin = p_origin; }
|
inline void SetOrigin(MxCore* p_origin) { m_origin = p_origin; }
|
||||||
|
|||||||
@ -38,10 +38,12 @@ class MxDSObject : public MxCore {
|
|||||||
inline MxU32 GetObjectId() { return this->m_objectId; }
|
inline MxU32 GetObjectId() { return this->m_objectId; }
|
||||||
inline const MxAtomId& GetAtomId() { return this->m_atomId; }
|
inline const MxAtomId& GetAtomId() { return this->m_atomId; }
|
||||||
inline MxS16 GetUnknown24() { return this->m_unk0x24; }
|
inline MxS16 GetUnknown24() { return this->m_unk0x24; }
|
||||||
|
inline undefined4 GetUnknown28() { return this->m_unk0x28; }
|
||||||
|
|
||||||
inline void SetType(MxDSType p_type) { this->m_type = p_type; }
|
inline void SetType(MxDSType p_type) { this->m_type = p_type; }
|
||||||
inline void SetObjectId(MxU32 p_objectId) { this->m_objectId = p_objectId; }
|
inline void SetObjectId(MxU32 p_objectId) { this->m_objectId = p_objectId; }
|
||||||
inline void SetUnknown24(MxS16 p_unk0x24) { this->m_unk0x24 = p_unk0x24; }
|
inline void SetUnknown24(MxS16 p_unk0x24) { this->m_unk0x24 = p_unk0x24; }
|
||||||
|
inline void SetUnknown28(undefined4 p_unk0x28) { this->m_unk0x28 = p_unk0x28; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MxU32 m_sizeOnDisk; // 0x8
|
MxU32 m_sizeOnDisk; // 0x8
|
||||||
|
|||||||
@ -32,8 +32,9 @@ class MxDSStreamingAction : public MxDSAction {
|
|||||||
void FUN_100cd2d0();
|
void FUN_100cd2d0();
|
||||||
|
|
||||||
inline MxU32 GetBufferOffset() { return m_bufferOffset; }
|
inline MxU32 GetBufferOffset() { return m_bufferOffset; }
|
||||||
inline MxDSBuffer* GetUnknowna0() { return m_unka0; }
|
inline MxDSBuffer* GetUnknowna0() { return m_unk0xa0; }
|
||||||
inline void SetUnknowna0(MxDSBuffer* p_unka0) { m_unka0 = p_unka0; }
|
inline MxDSBuffer* GetUnknowna4() { return m_unk0xa4; }
|
||||||
|
inline void SetUnknowna0(MxDSBuffer* p_unka0) { m_unk0xa0 = p_unka0; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MxU32 m_unk0x94;
|
MxU32 m_unk0x94;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user