mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
(Proposal) Introduction of naming convention checker (ncc
) (#322)
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
This commit is contained in:

committed by
GitHub

parent
3b155bfe38
commit
bc5ca621a4
@@ -8,17 +8,17 @@ DECOMP_SIZE_ASSERT(MxDSBuffer, 0x34);
|
||||
// FUNCTION: LEGO1 0x100c6470
|
||||
MxDSBuffer::MxDSBuffer()
|
||||
{
|
||||
m_unk20 = 0;
|
||||
m_unk0x20 = 0;
|
||||
m_pBuffer = NULL;
|
||||
m_pIntoBuffer = NULL;
|
||||
m_pIntoBuffer2 = NULL;
|
||||
m_unk14 = 0;
|
||||
m_unk18 = 0;
|
||||
m_unk1c = 0;
|
||||
m_unk0x14 = 0;
|
||||
m_unk0x18 = 0;
|
||||
m_unk0x1c = 0;
|
||||
m_writeOffset = 0;
|
||||
m_bytesRemaining = 0;
|
||||
m_mode = MxDSBufferType_Preallocated;
|
||||
m_unk30 = 0;
|
||||
m_unk0x30 = 0;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100c6530
|
||||
@@ -33,8 +33,8 @@ MxDSBuffer::~MxDSBuffer()
|
||||
}
|
||||
}
|
||||
|
||||
m_unk14 = 0;
|
||||
m_unk1c = 0;
|
||||
m_unk0x14 = 0;
|
||||
m_unk0x1c = 0;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100c6640
|
||||
@@ -119,10 +119,10 @@ MxResult MxDSBuffer::SetBufferPointer(MxU32* p_buffer, MxU32 p_size)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100c6f80
|
||||
void MxDSBuffer::FUN_100c6f80(MxU32 p_unk)
|
||||
void MxDSBuffer::FUN_100c6f80(MxU32 p_writeOffset)
|
||||
{
|
||||
if (p_unk < m_writeOffset) {
|
||||
m_pIntoBuffer2 = m_pBuffer + p_unk;
|
||||
m_pIntoBuffer = m_pBuffer + p_unk;
|
||||
if (p_writeOffset < m_writeOffset) {
|
||||
m_pIntoBuffer2 = m_pBuffer + p_writeOffset;
|
||||
m_pIntoBuffer = m_pBuffer + p_writeOffset;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user