Fakematch d_a_agb's weak order with next-TU hack

This commit is contained in:
LagoLunatic
2024-02-12 16:15:48 -05:00
parent b8a8861f41
commit e713c46d12
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -3,6 +3,13 @@
// Translation Unit: d_a_arrow.cpp
//
// Fakematch: This is supposed to be a weak function defined in d_a_player.h that wind up at the end of the
// d_a_agb TU. But weak function ordering is currently broken, so to get d_a_agb to match, we define it
// here (at the start of the *next* TU after d_a_agb) so that it gets placed into the correct spot in
// the DOL, even though this is an ugly hack and they're now in the wrong translation unit instead.
#include "d/actor/d_a_player.h"
u32 daPy_py_c::checkPlayerFly() const { return 0; }
#include "d/actor/d_a_arrow.h"
#include "m_Do/m_Do_mtx.h"
#include "d/d_com_inf_game.h"