mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
12 lines
366 B
C
12 lines
366 B
C
#include "patches.h"
|
|
|
|
// @recomp Leave the entire KSEG0 range unmodified when translating to a virtual address. This will allow
|
|
// using the entirety of the extended RAM address space for custom assets.
|
|
RECOMP_PATCH void* Lib_SegmentedToVirtual(void* ptr) {
|
|
if (IS_KSEG0(ptr)) {
|
|
return ptr;
|
|
}
|
|
else {
|
|
return SEGMENTED_TO_K0(ptr);
|
|
}
|
|
}
|