Skip to content

Commit

Permalink
d_wood: Mark as matching in configure.py
Browse files Browse the repository at this point in the history
Had to move Packet_c destructor to get the functions in the right order. See discussion: https://discord.com/channels/727908905392275526/873250400483024976/1300680009458913280
  • Loading branch information
themikelester committed Oct 29, 2024
1 parent a261786 commit fd9cb51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def MatchingFor(*versions):
Object(NonMatching, "d/d_cam_style.cpp"),
Object(NonMatching, "d/d_cam_type2.cpp"),
Object(NonMatching, "d/d_ev_camera.cpp"),
Object(NonMatching, "d/d_wood.cpp"),
Object(Matching, "d/d_wood.cpp", extra_cflags=["-sym off"]),
Object(NonMatching, "d/d_flower.cpp"),
Object(Matching, "d/d_item_data.cpp"),
Object(Matching, "d/d_seafightgame.cpp"),
Expand Down
2 changes: 1 addition & 1 deletion include/d/d_wood.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Packet_c : public J3DPacket {
inline Anm_c* get_anm_p(AnmID_e idx) { return &mAnm[idx]; }

virtual void draw();
virtual ~Packet_c() {};
virtual ~Packet_c();

/* 0x00010 */ Unit_c mUnit[200];
/* 0x13570 */ Anm_c mAnm[72];
Expand Down
2 changes: 2 additions & 0 deletions src/d/d_wood.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,8 @@ dWood::Packet_c::Packet_c() {
}
}

dWood::Packet_c::~Packet_c() {};

/* 800BF194-800BF1C8 .text delete_room__Q25dWood8Packet_cFi */
void dWood::Packet_c::delete_room(int room_no) {
mRoom[room_no].delete_all_unit();
Expand Down

0 comments on commit fd9cb51

Please sign in to comment.