Fix symbol for isRegisterd. (from NSMBW map)

This commit is contained in:
elijah-thomas774
2024-05-12 12:58:59 -04:00
parent 46f664de1a
commit 477f6da6cd
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -26305,7 +26305,7 @@ getStandardRenderModeObj__Q23EGG5VideoFPCQ33EGG5Video16RenderModeObjSet = .text:
init__Q23EGG3XfbFUsUsPQ23EGG4Heap = .text:0x804989E0; // type:function size:0x74
__ct__Q23EGG3XfbFPQ23EGG4Heap = .text:0x80498A60; // type:function size:0x64
calcBufferSize__Q23EGG3XfbFUsUs = .text:0x80498AD0; // type:function size:0x14
isRegisterd__Q23EGG10XfbManagerCFPQ23EGG3Xfb = .text:0x80498AF0; // type:function size:0x34
isRegisterd__Q23EGG10XfbManagerCFRQ23EGG3Xfb = .text:0x80498AF0; // type:function size:0x34
attach__Q23EGG10XfbManagerFPQ23EGG3Xfb = .text:0x80498B30; // type:function size:0xE0
copyEFB__Q23EGG10XfbManagerFb = .text:0x80498C10; // type:function size:0xE8
setNextFrameBuffer__Q23EGG10XfbManagerFv = .text:0x80498D00; // type:function size:0x120
+1 -1
View File
@@ -14,7 +14,7 @@ public:
/* 0xC */ u8 mNumXfbs; // Total number of Xfbs ever attached
/* 0xD */ u8 mNumXfbs_Copy; // Unsure of purpose yet, but showing wont proceed until its under 3
public:
/* 80498af0 */ bool isRegisterd(Xfb *xfb) const; // yes. this is correct spelling
/* 80498af0 */ bool isRegisterd(Xfb &xfb) const; // yes. this is correct spelling
/* 80498b30 */ bool attach(Xfb *xfb);
/* 80498c10 */ void copyEFB(bool);
/* 80498d00 */ void setNextFrameBuffer();
+3 -3
View File
@@ -6,13 +6,13 @@
namespace EGG {
/* 80498af0 */ bool XfbManager::isRegisterd(Xfb *xfb) const {
/* 80498af0 */ bool XfbManager::isRegisterd(Xfb &xfb) const {
Xfb *x = mNextXfb;
Xfb *iter = x;
if (mNextXfb != nullptr) {
do {
if (iter == xfb) {
if (iter == &xfb) {
return true;
}
iter = iter->mNext;
@@ -25,7 +25,7 @@ namespace EGG {
int interrupts = OSDisableInterrupts();
bool u3 = 0;
if (xfb != nullptr && !isRegisterd(xfb)) {
if (xfb != nullptr && !isRegisterd(*xfb)) {
xfb->mState = Xfb::XFB_UNPROCESSED;
if (mNextXfb == nullptr) {
mNextXfb = xfb;