summaryrefslogtreecommitdiff
path: root/src/engine/courses/Course.cpp
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-11-25 19:15:10 -0700
committerGitHub <noreply@github.com>2024-11-25 19:15:10 -0700
commitba1cfae6f4f5793b39ee52d33230c2d0fe9e4483 (patch)
tree22a521a98499eddb0387789f2ba8ee7df7e86a6e /src/engine/courses/Course.cpp
parent75344d87eb0eed56bd366be65934681a5c1ecf15 (diff)
parent635556027af81c252cbf4a5cf8ea4b0b2f2e1581 (diff)
Merge pull request #127 from MegaMech/modsnew
[modding] wip changes
Diffstat (limited to 'src/engine/courses/Course.cpp')
-rw-r--r--src/engine/courses/Course.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/engine/courses/Course.cpp b/src/engine/courses/Course.cpp
index bdec26404..6cef03d6b 100644
--- a/src/engine/courses/Course.cpp
+++ b/src/engine/courses/Course.cpp
@@ -117,7 +117,10 @@ void Course::Load() {
// Extract packed DLs
u8* packed = reinterpret_cast<u8*>(LOAD_ASSET_RAW(this->gfx));
Gfx* gfx = (Gfx*) allocate_memory(sizeof(Gfx) * this->gfxSize); // Size of unpacked DLs
- assert(gfx != NULL);
+ if (gfx == NULL) {
+ printf("Failed to allocate course displaylist memory\n");
+ }
+
gSegmentTable[7] = reinterpret_cast<uintptr_t>(&gfx[0]);
displaylist_unpack(reinterpret_cast<uintptr_t *>(gfx), reinterpret_cast<uintptr_t>(packed), 0);
@@ -236,6 +239,10 @@ void Course::Collision() {}
void Course::ScrollingTextures() {}
void Course::DrawWater(struct UnkStruct_800DC5EC* screen, uint16_t pathCounter, uint16_t cameraRot, uint16_t playerDirection) {}
-void Course::Destroy() { }
+void Course::Destroy() {}
+
+bool Course::IsMod() {
+ return false;
+}
Course* currentCourse = nullptr;