(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 commit d87d665127.

* Revert "FUNCTION to SYNTHETIC where needed"

This reverts commit 8c815418d2.

* 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:
Christian Semmler
2023-12-06 07:10:45 -05:00
committed by GitHub
parent 4f5b70013f
commit 494a556f8e
407 changed files with 3505 additions and 2493 deletions

View File

@@ -5,20 +5,20 @@
#define SI_MAJOR_VERSION 2
#define SI_MINOR_VERSION 2
// OFFSET: LEGO1 0x100bfed0
// FUNCTION: LEGO1 0x100bfed0
MxDSFile::~MxDSFile()
{
Close();
}
// OFFSET: LEGO1 0x100cc4b0
// FUNCTION: LEGO1 0x100cc4b0
MxDSFile::MxDSFile(const char* filename, MxULong skipReadingChunks)
{
m_filename = filename;
m_skipReadingChunks = skipReadingChunks;
}
// OFFSET: LEGO1 0x100cc590
// FUNCTION: LEGO1 0x100cc590
MxLong MxDSFile::Open(MxULong uStyle)
{
MXIOINFO& io = m_io;
@@ -46,7 +46,7 @@ MxLong MxDSFile::Open(MxULong uStyle)
return longResult;
}
// OFFSET: LEGO1 0x100cc620
// FUNCTION: LEGO1 0x100cc620
MxLong MxDSFile::ReadChunks()
{
_MMCKINFO topChunk;
@@ -81,7 +81,7 @@ MxLong MxDSFile::ReadChunks()
}
}
// OFFSET: LEGO1 0x100cc740
// FUNCTION: LEGO1 0x100cc740
MxLong MxDSFile::Close()
{
m_io.Close(0);
@@ -95,7 +95,7 @@ MxLong MxDSFile::Close()
return 0;
}
// OFFSET: LEGO1 0x100cc780
// FUNCTION: LEGO1 0x100cc780
MxResult MxDSFile::Read(unsigned char* p_buf, MxULong p_nbytes)
{
if (m_io.Read(p_buf, p_nbytes) != p_nbytes)
@@ -105,19 +105,19 @@ MxResult MxDSFile::Read(unsigned char* p_buf, MxULong p_nbytes)
return SUCCESS;
}
// OFFSET: LEGO1 0x100cc7b0
// FUNCTION: LEGO1 0x100cc7b0
MxLong MxDSFile::Seek(MxLong lOffset, int iOrigin)
{
return (m_position = m_io.Seek(lOffset, iOrigin)) == -1 ? -1 : 0;
}
// OFFSET: LEGO1 0x100cc7e0
// FUNCTION: LEGO1 0x100cc7e0
MxULong MxDSFile::GetBufferSize()
{
return m_header.bufferSize;
}
// OFFSET: LEGO1 0x100cc7f0
// FUNCTION: LEGO1 0x100cc7f0
MxULong MxDSFile::GetStreamBuffersNum()
{
return m_header.streamBuffersNum;