diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-01-27 01:01:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-26 22:01:05 -0800 |
| commit | bf4053fefa301a307065a07ffc4c3f9f970f2638 (patch) | |
| tree | afc005dc11ce0d21654c5023349ab074683a1f30 /src/d/d_bright_check.cpp | |
| parent | 5644936254b6617875c5a55caeae3e2526849d5a (diff) | |
Fix spurious differences when using `ninja diff` (#2294)
* Fix spurious differences when using ninja diff
* Fix some clangd errors/warnings
Diffstat (limited to 'src/d/d_bright_check.cpp')
| -rw-r--r-- | src/d/d_bright_check.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/d/d_bright_check.cpp b/src/d/d_bright_check.cpp index 0de3084493..fd758d016f 100644 --- a/src/d/d_bright_check.cpp +++ b/src/d/d_bright_check.cpp @@ -11,6 +11,23 @@ #include "d/d_msg_string.h" #include "m_Do/m_Do_controller_pad.h" +// Need 0x10 bytes of padding with no symbol between dBrightCheck_c::__vtable and the end of .data +// This is likely caused by the vtable of an abstract base class getting put there and then stripped out. +// Not sure which abstract base class could go there though, so we simulate it with some dummy classes for now. +class dummy_abstract_class { +public: + virtual void virt_func_0() = 0; + virtual void virt_func_1() = 0; +}; +class dummy_child_class : dummy_abstract_class { + virtual void virt_func_0(); + virtual void virt_func_1(); +}; +static dummy_child_class dummy() { + dummy_child_class temp; + return temp; +} + /* 803BB5B0-803BB5BC 0186D0 000C+00 1/1 0/0 0/0 .data cNullVec__6Z2Calc */ static u8 cNullVec__6Z2Calc[12] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -135,4 +152,4 @@ void dBrightCheck_c::_draw() { void dDlst_BrightCheck_c::draw() { J2DGrafContext* graf_ctx = dComIfGp_getCurrentGrafPort(); Scr->draw(0.0f, 0.0f, graf_ctx); -}
\ No newline at end of file +} |
