Implement GDInitGDLObj a little bit

Enough to avoid a crash during asset loading.
This commit is contained in:
PJB3005
2026-02-25 19:52:31 +01:00
parent 46f5edf7da
commit 975a15036e
+6 -1
View File
@@ -1451,7 +1451,12 @@ void GDFlushCurrToMem(void) {
puts("GDFlushCurrToMem is a stub");
}
void GDInitGDLObj(GDLObj* dl, void* start, u32 length) {
puts("GDInitGDLObj is a stub");
ASSERTMSGLINE(40, !((u32)start & 0x1F), "start must be aligned to 32 bytes");
ASSERTMSGLINE(41, !((u32)length & 0x1F), "length must be aligned to 32 bytes");
dl->start = static_cast<u8*>(start);
dl->ptr = static_cast<u8*>(start);
dl->top = (u8*)start + length;
dl->length = length;
}
void GDOverflowed(void) {
puts("GDOverflowed is a stub");