mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
29 lines
572 B
C++
29 lines
572 B
C++
#include "PrecompiledHeader.h"
|
|
#include "BiosDebugData.h"
|
|
#include "../Memory.h"
|
|
|
|
std::vector<EEThread> getEEThreads()
|
|
{
|
|
std::vector<EEThread> threads;
|
|
|
|
if (CurrentBiosInformation == NULL)
|
|
return threads;
|
|
|
|
u32 start = CurrentBiosInformation->threadListAddr & 0x3fffff;
|
|
for (int tid = 0; tid < 256; tid++)
|
|
{
|
|
EEThread thread;
|
|
|
|
EEInternalThread* internal = (EEInternalThread*) PSM(start+tid*sizeof(EEInternalThread));
|
|
if (internal->status != THS_BAD)
|
|
{
|
|
thread.tid = tid;
|
|
thread.data = *internal;
|
|
threads.push_back(thread);
|
|
}
|
|
}
|
|
|
|
return threads;
|
|
}
|
|
|