mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-05-30 08:57:04 -04:00
Patch virtual address translation to support entire extended RAM address space (#533)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user