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
+3 -3
View File
@@ -1088,10 +1088,10 @@ out:
}
/* 8000AAC4-8000AB1C .text mCaptureProc__FPv */
void* mCaptureProc(void* dummy) {
void* bytesCopied = (void*)encode_s3tc(mCaptureCaptureBuffer, mCaptureTextureBuffer, mCaptureSizeWidth, mCaptureSizeHeight, (GXTexFmt)mCaptureCaptureFormat);
u32 mCaptureProc(void* dummy) {
u32 bytesCopied = encode_s3tc(mCaptureCaptureBuffer, mCaptureTextureBuffer, mCaptureSizeWidth, mCaptureSizeHeight, (GXTexFmt)mCaptureCaptureFormat);
DCStoreRange(mCaptureTextureBuffer, mCaptureTextureSize);
OSExitThread(bytesCopied);
OSExitThread((void*)bytesCopied);
return bytesCopied;
}
+2 -2
View File
@@ -440,7 +440,7 @@ void main01() {
OSThread mainThread;
/* 80006464-800065DC .text main */
void main() {
int main() {
OSThread* current_thread = OSGetCurrentThread();
u8 ALIGN_DECL(0x20) stack[0xF000];
@@ -483,5 +483,5 @@ void main() {
OSCreateThread(&mainThread, (void*)main01, 0, stack + sizeof(stack), sizeof(stack), priority, 0);
OSResumeThread(&mainThread);
OSSetThreadPriority(current_thread, 0x1F);
OSSuspendThread(current_thread);
return OSSuspendThread(current_thread);
}