JStudio/JMessage work and cleanup

This commit is contained in:
LagoLunatic
2025-01-17 20:04:18 -05:00
parent b5350e1d1a
commit 2a02484cdc
15 changed files with 244 additions and 215 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ static u32 __GXGetNumXfbLines(u32 height, u32 scale) {
return actualHeight;
}
u16 GXGetNumXfbLines(const u16 efbHeight, f32 yScale) {
u16 GXGetNumXfbLines(u16 efbHeight, f32 yScale) {
u32 scale = (u32)(256.0f / yScale) & 0x1FF;
return __GXGetNumXfbLines(efbHeight, scale);
+1 -5
View File
@@ -330,10 +330,6 @@ static inline void __OSSwitchThread(OSThread* nextThread) {
OSLoadContext(&nextThread->context);
}
inline OSThread* i_OSGetCurrentThread(void) {
return OS_CURRENT_THREAD;
}
static OSThread* SelectThread(BOOL yield) {
OSContext* currentContext;
OSThread* currentThread;
@@ -346,7 +342,7 @@ static OSThread* SelectThread(BOOL yield) {
}
currentContext = OSGetCurrentContext();
currentThread = i_OSGetCurrentThread();
currentThread = OSGetCurrentThread();
if (currentContext != &currentThread->context) {
return 0;
}