From e378ad4224ede27045f185e4f07ee55003184365 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Tue, 22 Aug 2023 12:20:42 -0400 Subject: [PATCH] Add decomp size asserts --- LEGO1/ambulance.cpp | 4 ++++ LEGO1/bike.cpp | 4 ++++ LEGO1/dunebuggy.cpp | 4 ++++ LEGO1/jetski.cpp | 4 ++++ LEGO1/racecar.cpp | 4 ++++ LEGO1/skateboard.cpp | 4 ++++ LEGO1/towtrack.cpp | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/LEGO1/ambulance.cpp b/LEGO1/ambulance.cpp index a62e6134..707f7a8d 100644 --- a/LEGO1/ambulance.cpp +++ b/LEGO1/ambulance.cpp @@ -1,5 +1,9 @@ #include "ambulance.h" +#include "decomp.h" + +DECOMP_SIZE_ASSERT(Ambulance, 0x184); + // OFFSET: LEGO1 0x10035ee0 Ambulance::Ambulance() { diff --git a/LEGO1/bike.cpp b/LEGO1/bike.cpp index b0628357..86fa28f4 100644 --- a/LEGO1/bike.cpp +++ b/LEGO1/bike.cpp @@ -1,5 +1,9 @@ #include "bike.h" +#include "decomp.h" + +DECOMP_SIZE_ASSERT(Bike, 0x164); + // OFFSET: LEGO1 0x10076670 Bike::Bike() { diff --git a/LEGO1/dunebuggy.cpp b/LEGO1/dunebuggy.cpp index 50b09e05..42fd4c37 100644 --- a/LEGO1/dunebuggy.cpp +++ b/LEGO1/dunebuggy.cpp @@ -1,5 +1,9 @@ #include "dunebuggy.h" +#include "decomp.h" + +DECOMP_SIZE_ASSERT(DuneBuggy, 0x16c); + // OFFSET: LEGO1 0x10067bb0 DuneBuggy::DuneBuggy() { diff --git a/LEGO1/jetski.cpp b/LEGO1/jetski.cpp index 995da506..b00fd68c 100644 --- a/LEGO1/jetski.cpp +++ b/LEGO1/jetski.cpp @@ -1,5 +1,9 @@ #include "jetski.h" +#include "decomp.h" + +DECOMP_SIZE_ASSERT(Jetski, 0x164); + // OFFSET: LEGO1 0x1007e3b0 Jetski::Jetski() { diff --git a/LEGO1/racecar.cpp b/LEGO1/racecar.cpp index 47758fab..be428b24 100644 --- a/LEGO1/racecar.cpp +++ b/LEGO1/racecar.cpp @@ -1,5 +1,9 @@ #include "racecar.h" +#include "decomp.h" + +DECOMP_SIZE_ASSERT(RaceCar, 0x164); + // OFFSET: LEGO1 0x10028200 RaceCar::RaceCar() { diff --git a/LEGO1/skateboard.cpp b/LEGO1/skateboard.cpp index fa5ec5ad..08ba64d1 100644 --- a/LEGO1/skateboard.cpp +++ b/LEGO1/skateboard.cpp @@ -1,5 +1,9 @@ #include "skateboard.h" +#include "decomp.h" + +DECOMP_SIZE_ASSERT(SkateBoard, 0x168); + // OFFSET: LEGO1 0x1000fd40 SkateBoard::SkateBoard() { diff --git a/LEGO1/towtrack.cpp b/LEGO1/towtrack.cpp index 62c76590..57677737 100644 --- a/LEGO1/towtrack.cpp +++ b/LEGO1/towtrack.cpp @@ -1,5 +1,9 @@ #include "towtrack.h" +#include "decomp.h" + +DECOMP_SIZE_ASSERT(TowTrack, 0x180); + // OFFSET: LEGO1 0x1004c720 TowTrack::TowTrack() {