mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-09-10 20:49:48 -04:00
Fix flare dancer crash (#7122)
Expand the main `GfxPool` buffers to 1MiB
This commit is contained in:
+7
-6
@@ -93,15 +93,16 @@ typedef struct {
|
||||
/* 0x14 */ s16 data[REG_GROUPS * REG_PER_GROUP]; // 0xAE0 entries
|
||||
} GameInfo; // size = 0x15D4
|
||||
|
||||
// Changed the main buffers to be 1MiB to make them basically impossible to overflow
|
||||
typedef struct {
|
||||
/* 0x00000 */ u16 headMagic; // GFXPOOL_HEAD_MAGIC
|
||||
/* 0x00008 */ Gfx polyOpaBuffer[0x2FC0];
|
||||
/* 0x0BF08 */ Gfx polyXluBuffer[0x1000];
|
||||
/* 0x0FF08 */ Gfx overlayBuffer[0x800];
|
||||
/* 0x11F08 */ Gfx workBuffer[0x100];
|
||||
/* 0x11308 */ Gfx unusedBuffer[0x40];
|
||||
/* 0x00008 */ Gfx polyOpaBuffer[1 * 1024 * 1024]; // original size was 0x17E0
|
||||
/* 0x0BF08 */ Gfx polyXluBuffer[1 * 1024 * 1024]; // original size was 0x800
|
||||
/* 0x0FF08 */ Gfx overlayBuffer[1 * 1024 * 1024]; // original size was 0x400
|
||||
/* 0x11F08 */ Gfx workBuffer[0x80];
|
||||
/* 0x11308 */ Gfx unusedBuffer[0x20];
|
||||
/* 0x12408 */ u16 tailMagic; // GFXPOOL_TAIL_MAGIC
|
||||
} GfxPool; // size = 0x24820
|
||||
} GfxPool; // size = 0x12410
|
||||
|
||||
typedef struct {
|
||||
/* 0x0000 */ u32 size;
|
||||
|
||||
Reference in New Issue
Block a user