File tree Expand file tree Collapse file tree 8 files changed +21
-21
lines changed Expand file tree Collapse file tree 8 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Debug::Debug()
49
49
50
50
#define OVERRIDE_FUNC (offset, func ) *(void **)((char *)globalData + offset) = (void *)func
51
51
52
- void Debug::Initialize ()
52
+ void Debug::Initialize () const noexcept
53
53
{
54
54
// Override all nullsubs in the event functions structure
55
55
auto globalData = (GlobalData*)GET_ADDRESS (0x1076980 , 0x7C8A50 , 0x000000 );
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ class Debug : public Module
7
7
private:
8
8
bool m_drawDebug = false ;
9
9
10
- void Initialize ();
10
+ void Initialize () const noexcept ;
11
11
12
12
public:
13
13
Debug ();
14
14
15
- bool IsDrawDebug () { return m_drawDebug; }
15
+ bool IsDrawDebug () const noexcept { return m_drawDebug; }
16
16
17
17
void OnPostInitialize ();
18
18
void OnMenu ();
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ void InstanceModule::OnDraw()
77
77
}
78
78
}
79
79
80
- void InstanceModule::DrawInstance ()
80
+ void InstanceModule::DrawInstance () const
81
81
{
82
82
auto instance = m_selected;
83
83
@@ -219,14 +219,14 @@ void InstanceModule::DrawInstance()
219
219
}
220
220
}
221
221
222
- void InstanceModule::SkewTo (Instance* instance)
222
+ void InstanceModule::SkewTo (Instance* instance) const noexcept
223
223
{
224
224
auto player = Game::GetPlayerInstance ();
225
225
226
226
player->position = instance->position ;
227
227
}
228
228
229
- void InstanceModule::UnhideAll ()
229
+ void InstanceModule::UnhideAll () const noexcept
230
230
{
231
231
Instances::Iterate ([](Instance* instance)
232
232
{
Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ class InstanceModule : public Module
13
13
Instance* m_selected = nullptr ;
14
14
char m_filter[64 ] = " " ;
15
15
16
- void DrawInstance ();
17
- void SkewTo (Instance* instance);
18
- void UnhideAll ();
16
+ void DrawInstance () const ;
17
+ void SkewTo (Instance* instance) const noexcept ;
18
+ void UnhideAll () const noexcept ;
19
19
20
- std::string GetBinary (int value);
20
+ static std::string GetBinary (int value);
21
21
22
22
public:
23
23
void OnMenu ();
24
24
void OnDraw ();
25
25
26
- Instance* GetSelected () { return m_selected; }
26
+ Instance* GetSelected () const noexcept { return m_selected; }
27
27
};
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ void LevelModule::OnDraw()
48
48
}
49
49
}
50
50
51
- void LevelModule::DrawEventDebug ()
51
+ void LevelModule::DrawEventDebug () noexcept
52
52
{
53
53
ImGui::Begin (" Event debug" , &m_eventDebug);
54
54
ImGui::Columns (2 );
@@ -100,7 +100,7 @@ void LevelModule::DrawEventDebug()
100
100
ImGui::End ();
101
101
}
102
102
103
- void LevelModule::DrawEventDebug (StreamUnit* unit)
103
+ void LevelModule::DrawEventDebug (StreamUnit* unit) const noexcept
104
104
{
105
105
auto level = unit->level ;
106
106
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ class LevelModule : public Module
9
9
bool m_eventDebug = false ;
10
10
StreamUnit* m_selected = nullptr ;
11
11
12
- void DrawEventDebug ();
13
- void DrawEventDebug (StreamUnit* unit);
12
+ void DrawEventDebug () noexcept ;
13
+ void DrawEventDebug (StreamUnit* unit) const noexcept ;
14
14
15
15
public:
16
16
LevelModule ();
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ void Log::OnDraw()
37
37
}
38
38
}
39
39
40
- void Log::Write (const char * fmt, ...)
40
+ void Log::Write (const char * fmt, ...) noexcept
41
41
{
42
42
va_list args;
43
43
va_start (args, fmt);
@@ -47,7 +47,7 @@ void Log::Write(const char* fmt, ...)
47
47
va_end (args);
48
48
}
49
49
50
- void Log::WriteLine (const char * fmt, ...)
50
+ void Log::WriteLine (const char * fmt, ...) noexcept
51
51
{
52
52
va_list args;
53
53
va_start (args, fmt);
@@ -58,7 +58,7 @@ void Log::WriteLine(const char* fmt, ...)
58
58
va_end (args);
59
59
}
60
60
61
- void Log::Clear ()
61
+ void Log::Clear () noexcept
62
62
{
63
63
m_buffer.clear ();
64
64
}
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ class Log : public Module
15
15
void OnDraw ();
16
16
17
17
// Writes to the log
18
- void Write (const char * fmt, ...);
18
+ void Write (const char * fmt, ...) noexcept ;
19
19
// Writes a line to the log
20
- void WriteLine (const char * fmt, ...);
20
+ void WriteLine (const char * fmt, ...) noexcept ;
21
21
22
22
// Clears the log
23
- void Clear ();
23
+ void Clear () noexcept ;
24
24
};
You can’t perform that action at this time.
0 commit comments