Skip to content

Commit ac76106

Browse files
committed
Add PPropertyReaderParseError
Implement AddDefinitionBlock
1 parent 7f2771e commit ac76106

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

Toshi/Plugins/Include/PPropertyParser/PPropertyReader.h

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
33
#include "TKernel/TFile.h"
44
#include "TKernel/TFileLexerUTF8.h"
55
#include "PProperties.h"
6+
#include "PPropertyBlock.h"
7+
8+
class PPROPERTYPARSER_EXPORTS PPropertyReaderParseError
9+
{
10+
PPropertyReaderParseError()
11+
{
12+
}
13+
14+
Toshi::TFileLexer::Token m_oToken; // 0x0
15+
};
616

717
class PPROPERTYPARSER_EXPORTS PPropertyReader : public Toshi::TObject
818
{
919
public:
1020
PPropertyReader();
1121

22+
// $PPropertyParser: FUNCTION 10003af0
23+
void AddDefinitionBlock(Toshi::TManagedPtr<PPropertyBlock> a_MPBlock);
24+
1225
void Close();
1326

1427
void Error(const Toshi::TCString &a_sMsg);
@@ -29,10 +42,11 @@ class PPROPERTYPARSER_EXPORTS PPropertyReader : public Toshi::TObject
2942
void Warning(const Toshi::TCString &a_sMsg);
3043

3144
private:
32-
Toshi::TCString m_szFileName; // 0x4
33-
Toshi::TFile *m_pFile; // 0xC
34-
Toshi::TFileLexerUTF8 *m_pLexer; // 0x10
35-
TBOOL m_bLoadComments; // 0x24
36-
TBOOL m_bAssertOnError; // 0x25
37-
Toshi::TArray<PProperties> m_oPropertyBlock; // 0x28
45+
Toshi::TCString m_szFileName; // 0x4
46+
Toshi::TFile *m_pFile; // 0xC
47+
Toshi::TFileLexerUTF8 *m_pLexer; // 0x10
48+
Toshi::TArray<PPropertyBlock> m_oDefinitionBlocks; // 0x14
49+
TBOOL m_bLoadComments; // 0x24
50+
TBOOL m_bAssertOnError; // 0x25
51+
Toshi::TArray<PProperties> m_oPropertyBlock; // 0x28
3852
};

Toshi/Plugins/Source/PPropertyParser/PPropertyReader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ PPropertyReader::PPropertyReader()
1414
m_bAssertOnError = TTRUE;
1515
}
1616

17+
void PPropertyReader::AddDefinitionBlock(Toshi::TManagedPtr<PPropertyBlock> a_MPBlock)
18+
{
19+
m_oDefinitionBlocks.Push(*a_MPBlock);
20+
}
21+
1722
void PPropertyReader::Close()
1823
{
1924
if (m_pFile) {

0 commit comments

Comments
 (0)