diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2023-10-19 23:37:21 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-19 23:37:21 -0600 |
| commit | 76dc587a342d45c73c4e459e0bba233343be90da (patch) | |
| tree | 2a035f186839747d7b9c40b1ed32586908d205e0 /src/data | |
| parent | 291c1d40d67487597e5e8708ec7ee1e28fbbe40c (diff) | |
EU 1.0 OK (#265)
* EU 1.0 ok
* EU 1.1 ok
Co-authored-by: AloXado320 <david.albujar.s.30@gmail.com>
Diffstat (limited to 'src/data')
| -rw-r--r-- | src/data/framebuffers.c | 6 | ||||
| -rw-r--r-- | src/data/gfx_output_buffer.c | 6 | ||||
| -rw-r--r-- | src/data/gfx_output_buffer.h | 14 |
3 files changed, 25 insertions, 1 deletions
diff --git a/src/data/framebuffers.c b/src/data/framebuffers.c index 4c70de69b..72104568e 100644 --- a/src/data/framebuffers.c +++ b/src/data/framebuffers.c @@ -9,7 +9,11 @@ u16 gRandomSeed16; u8 randomSeedPadding[216]; -u8 frameBufferPadding[22544]; +#ifdef VERSION_EU +u8 frameBufferPadding[0x5750]; +#else +u8 frameBufferPadding[0x5810]; +#endif struct_D_802BFB80 D_802BFB80[2][2][8]; struct_D_802DFB80 D_802DFB80[2][2][8]; diff --git a/src/data/gfx_output_buffer.c b/src/data/gfx_output_buffer.c new file mode 100644 index 000000000..f1624c767 --- /dev/null +++ b/src/data/gfx_output_buffer.c @@ -0,0 +1,6 @@ +#include <ultra64.h> +#include "gfx_output_buffer.h" + +u64 gGfxSPTaskOutputBuffer[GFX_OUTPUT_BUFFER_SIZE]; + +u32 gGfxSPTaskOutputBufferSize;
\ No newline at end of file diff --git a/src/data/gfx_output_buffer.h b/src/data/gfx_output_buffer.h new file mode 100644 index 000000000..6c489c1ea --- /dev/null +++ b/src/data/gfx_output_buffer.h @@ -0,0 +1,14 @@ +#ifndef GFX_OUTPUT_BUFFER_H +#define GFX_OUTPUT_BUFFER_H + +#include <PR/ultratypes.h> + +// 0x1f000 bytes, aligned to a 0x1000-byte boundary through sm64.ld. (This results +// in a bunch of unused space: ~0x100 in JP, ~0x300 in US.) +#define GFX_OUTPUT_BUFFER_SIZE 0x3f00 + +// 0x3F00 +extern u64 gGfxSPTaskOutputBuffer[GFX_OUTPUT_BUFFER_SIZE]; +extern u32 gGfxSPTaskOutputBufferSize; + +#endif // GFX_OUTPUT_BUFFER_H |
