mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 02:16:03 -04:00
4df8ccc871
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
29 lines
782 B
C++
29 lines
782 B
C++
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
|
|
|
#include "JSystem/JAudio2/JASDvdThread.h"
|
|
#include "JSystem/JAudio2/JASTaskThread.h"
|
|
#include "JSystem/JKernel/JKRSolidHeap.h"
|
|
|
|
JASTaskThread* JASDvd::sThread;
|
|
|
|
JASTaskThread* JASDvd::getThreadPointer() {
|
|
return JASDvd::sThread;
|
|
}
|
|
|
|
bool JASDvd::createThread(s32 priority, int msgCount, u32 stackSize) {
|
|
if (sThread != NULL) {
|
|
JUT_WARN_DEVICE(32, 2, "%s", "JASDvd::createThread が2回呼び出されました");
|
|
return false;
|
|
}
|
|
|
|
sThread = new (JASDram, 0) JASTaskThread(priority, msgCount, stackSize);
|
|
JUT_ASSERT(36, sThread);
|
|
|
|
JKRHeap* pCurrentHeap = JKRGetSystemHeap();
|
|
JUT_ASSERT(38, pCurrentHeap);
|
|
|
|
sThread->setCurrentHeap(pCurrentHeap);
|
|
sThread->resume();
|
|
return true;
|
|
}
|