mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
(Proposal) Adjustments to "decomp" language (#308)
* Adjustments to "decomp" language * Fix a comment * Fix accidental clang-formatting * Fix order * Fix order * Remove junk * Fix OFFSET * Adjustments based on new suggestions * Annotate globals * Globals in ISLE * More globals * Merge from parser2 branch * Allow prepending space for exact marker match * To eliminate noise, require the 0x prefix on offset for marker match * fix test from previous * Count tab stops for indented functions to reduce MISSED_END_OF_FUNCTION noise * FUNCTION to SYNTHETIC where needed * Missed marker conversion on SetAtomId * pylint cleanup, remove unused code * Fix unexpected function end, add more unit tests * Be more strict about synthetic name syntax * Revert "Missed marker conversion on SetAtomId" This reverts commitd87d665127
. * Revert "FUNCTION to SYNTHETIC where needed" This reverts commit8c815418d2
. * Implicit lookup by name for functions * Fix VTABLE SYNTHETIC and other decomp markers * Get vtable class name * Vtable marker should identify struct * No colon for SIZE comment * Update README.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Update CONTRIBUTING.md * Fix destructor/annotation * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md --------- Co-authored-by: disinvite <disinvite@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
4f5b70013f
commit
494a556f8e
@@ -9,19 +9,19 @@
|
||||
|
||||
DECOMP_SIZE_ASSERT(MxMediaPresenter, 0x50);
|
||||
|
||||
// OFFSET: LEGO1 0x1000c550
|
||||
// FUNCTION: LEGO1 0x1000c550
|
||||
MxMediaPresenter::~MxMediaPresenter()
|
||||
{
|
||||
Destroy(TRUE);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x1000c5b0
|
||||
// FUNCTION: LEGO1 0x1000c5b0
|
||||
void MxMediaPresenter::Destroy()
|
||||
{
|
||||
Destroy(FALSE);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b54e0
|
||||
// FUNCTION: LEGO1 0x100b54e0
|
||||
void MxMediaPresenter::Init()
|
||||
{
|
||||
this->m_subscriber = NULL;
|
||||
@@ -30,7 +30,7 @@ void MxMediaPresenter::Init()
|
||||
this->m_currentChunk = NULL;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b54f0
|
||||
// FUNCTION: LEGO1 0x100b54f0
|
||||
void MxMediaPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
{
|
||||
@@ -62,7 +62,7 @@ void MxMediaPresenter::Destroy(MxBool p_fromDestructor)
|
||||
MxPresenter::Destroy();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5650
|
||||
// FUNCTION: LEGO1 0x100b5650
|
||||
MxStreamChunk* MxMediaPresenter::FUN_100b5650()
|
||||
{
|
||||
MxStreamChunk* result = NULL;
|
||||
@@ -83,7 +83,7 @@ MxStreamChunk* MxMediaPresenter::FUN_100b5650()
|
||||
return result;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b56b0
|
||||
// FUNCTION: LEGO1 0x100b56b0
|
||||
MxStreamChunk* MxMediaPresenter::NextChunk()
|
||||
{
|
||||
MxStreamChunk* result = NULL;
|
||||
@@ -103,7 +103,7 @@ MxStreamChunk* MxMediaPresenter::NextChunk()
|
||||
return result;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5700
|
||||
// FUNCTION: LEGO1 0x100b5700
|
||||
MxResult MxMediaPresenter::StartAction(MxStreamController* p_controller, MxDSAction* p_action)
|
||||
{
|
||||
MxResult result = FAILURE;
|
||||
@@ -133,7 +133,7 @@ done:
|
||||
return result;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5bc0
|
||||
// FUNCTION: LEGO1 0x100b5bc0
|
||||
void MxMediaPresenter::EndAction()
|
||||
{
|
||||
MxAutoLocker lock(&m_criticalSection);
|
||||
@@ -166,7 +166,7 @@ void MxMediaPresenter::EndAction()
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5d10
|
||||
// FUNCTION: LEGO1 0x100b5d10
|
||||
MxResult MxMediaPresenter::Tickle()
|
||||
{
|
||||
MxAutoLocker lock(&m_criticalSection);
|
||||
@@ -176,7 +176,7 @@ MxResult MxMediaPresenter::Tickle()
|
||||
return MxPresenter::Tickle();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5d90
|
||||
// FUNCTION: LEGO1 0x100b5d90
|
||||
void MxMediaPresenter::StreamingTickle()
|
||||
{
|
||||
if (!m_currentChunk) {
|
||||
@@ -201,7 +201,7 @@ void MxMediaPresenter::StreamingTickle()
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5e10
|
||||
// FUNCTION: LEGO1 0x100b5e10
|
||||
void MxMediaPresenter::RepeatingTickle()
|
||||
{
|
||||
if (IsEnabled() && !m_currentChunk) {
|
||||
@@ -225,7 +225,7 @@ void MxMediaPresenter::RepeatingTickle()
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5ef0
|
||||
// FUNCTION: LEGO1 0x100b5ef0
|
||||
void MxMediaPresenter::DoneTickle()
|
||||
{
|
||||
m_previousTickleStates |= 1 << m_currentTickleState;
|
||||
@@ -233,7 +233,7 @@ void MxMediaPresenter::DoneTickle()
|
||||
EndAction();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b5f10
|
||||
// FUNCTION: LEGO1 0x100b5f10
|
||||
void MxMediaPresenter::AppendChunk(MxStreamChunk* p_chunk)
|
||||
{
|
||||
MxStreamChunk* chunk = new MxStreamChunk;
|
||||
@@ -247,7 +247,7 @@ void MxMediaPresenter::AppendChunk(MxStreamChunk* p_chunk)
|
||||
m_chunks->Append(chunk);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b6030
|
||||
// FUNCTION: LEGO1 0x100b6030
|
||||
void MxMediaPresenter::Enable(MxBool p_enable)
|
||||
{
|
||||
if (IsEnabled() != p_enable) {
|
||||
|
Reference in New Issue
Block a user