Skip to content

Commit a029dc6

Browse files
committed
Document N64DD data buffer
1 parent 9f5ddc5 commit a029dc6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

include/n64dd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ extern vu8 D_80121214;
155155

156156
extern s32 (*D_801D2E54)(struct_801E0D18*);
157157

158-
extern u8 B_801DC000[];
158+
extern u8 gN64DDDiskReadTemporaryBuffer[];
159159

160160
extern s32 D_801D2E90;
161161
extern OSMesgQueue* B_801E0D10[2];

src/n64dd/n64dd_data_buffer.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include "n64dd.h"
22

3-
// Buffer used for reading from the disk?
4-
u8 B_801DC000[0x4D10];
3+
// Buffer used during the process of reading from the disk
4+
// Used to directly read individual LBAs/blocks from the disk before copying to the final destination
5+
// As blocks/LBAs are read directly into this buffer from the disk, it has to be 16-byte aligned
6+
ALIGNED(16) u8 gN64DDDiskReadTemporaryBuffer[MAX_BLK_SIZE];

src/n64dd/z_n64dd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typedef struct struct_801D9B90 {
3636

3737
s32 func_801C7A1C(struct_801E0D18* arg0);
3838

39-
void* D_801D2E50 = &B_801DC000;
39+
void* D_801D2E50 = &gN64DDDiskReadTemporaryBuffer;
4040
s32 (*D_801D2E54)(struct_801E0D18*) = func_801C7A1C;
4141

4242
struct_801D9B90 B_801D9B90;

0 commit comments

Comments
 (0)