fix and link JUTConsole.cpp

This commit is contained in:
SwareJonge 2023-12-05 11:12:44 +01:00
parent d710e59ab4
commit 8094195393
2 changed files with 8 additions and 8 deletions

View File

@ -200,11 +200,11 @@ libs/JSystem/JUtility/JUTAssert.cpp:
.sbss: [0x803d4ad0, 0x803d4ad8]
.sdata2: [0x803d6508, 0x803d6520]
#libs/JSystem/JUtility/JUTConsole.cpp:
#.text: [0x800185a0, 0x80019910]
#.data: [0x80348040, 0x80348050]
#.sbss: [0x803d4ad8, 0x803d4ae8]
#.sdata2: [0x803d6520, 0x803d6558]
libs/JSystem/JUtility/JUTConsole.cpp:
.text: [0x800185a0, 0x80019910]
.data: [0x80348040, 0x80348050]
.sbss: [0x803d4ad8, 0x803d4ae8]
.sdata2: [0x803d6520, 0x803d6558]
libs/JSystem/JUtility/JUTDbPrint.cpp:
.text: [0x80019910, 0x80019d88]

View File

@ -451,10 +451,10 @@ void JUTConsoleManager::removeConsole(JUTConsole *const console)
soLink_.Remove(console);
}
// Scheduling mismatch for release
void JUTConsoleManager::draw() const
{
JGadget::TLinkList<JUTConsole, -24>::const_iterator it = soLink_.begin();
// this cast is needed to match release, luckily doesn't affect tp debug either, so maybe there's another temp or cast somewhere?
JGadget::TLinkList<JUTConsole, -24>::const_iterator it = ((const JUTConsoleManager *)this)->soLink_.begin();
JGadget::TLinkList<JUTConsole, -24>::const_iterator itEnd = soLink_.end();
for (; it != itEnd; ++it)
@ -466,7 +466,7 @@ void JUTConsoleManager::draw() const
}
}
if (mActiveConsole != nullptr)
if (mActiveConsole)
mActiveConsole->doDraw(JUTConsole::CONSOLE_TYPE_0);
}