[nostalgia] Fix oxPanic parameter order
This commit is contained in:
@@ -101,7 +101,7 @@ ox::Error shutdownGfx() {
|
||||
case 3:
|
||||
return REG_BG3CNT;
|
||||
default:
|
||||
oxPanic("Looking up non-existent register", OxError(1));
|
||||
oxPanic(OxError(1), "Looking up non-existent register");
|
||||
return REG_BG0CNT;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ static HeapSegment *findSegmentFor(std::size_t sz) {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
oxPanic("malloc: could not find segment", OxError(1));
|
||||
oxPanic(OxError(1), "malloc: could not find segment");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ void free(void *ptr) {
|
||||
} else if (p.segment) {
|
||||
p.segment->inUse = false;
|
||||
} else {
|
||||
oxPanic("Bad heap free", OxError(1));
|
||||
oxPanic(OxError(1), "Bad heap free");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,4 +160,4 @@ void operator delete[](void *ptr, unsigned long int) {
|
||||
core::free(ptr);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user