Document N64DD data buffer (#2665)

This commit is contained in:
Gabriel Ravier 2025-11-21 00:49:16 +01:00 committed by GitHub
parent eb55fc8453
commit eb5dac74d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View File

@ -155,7 +155,7 @@ extern vu8 D_80121214;
extern s32 (*D_801D2E54)(struct_801E0D18*);
extern u8 B_801DC000[];
extern u8 gN64DDDiskReadTemporaryBuffer[];
extern s32 D_801D2E90;
extern OSMesgQueue* B_801E0D10[2];

View File

@ -1,4 +1,8 @@
#include "n64dd.h"
// Buffer used for reading from the disk?
u8 B_801DC000[0x4D10];
/**
* Buffer used during the process of reading from the disk
* Used to directly read individual blocks from the disk before copying to the final destination.
* As blocks are read directly into this buffer from the disk, it should be 16-byte aligned.
*/
ALIGNED(16) u8 gN64DDDiskReadTemporaryBuffer[MAX_BLK_SIZE];

View File

@ -36,7 +36,7 @@ typedef struct struct_801D9B90 {
s32 func_801C7A1C(struct_801E0D18* arg0);
void* D_801D2E50 = &B_801DC000;
void* D_801D2E50 = &gN64DDDiskReadTemporaryBuffer;
s32 (*D_801D2E54)(struct_801E0D18*) = func_801C7A1C;
struct_801D9B90 B_801D9B90;