public HleThread(InjectContext InjectContext, CpuThreadState CpuThreadState)
{
InjectContext.InjectDependencesTo(this);
//this.PspConfig = CpuThreadState.CpuProcessor.CpuConfig;
if (this.HleConfig.UseCoRoutines)
{
this.Coroutine = HleThreadManager.CoroutinePool.CreateCoroutine(this.Name, MainLoop);
}
else
{
this.GreenThread = new GreenThread();
GreenThread.InitAndStartStopped(MainLoop);
}
this.CpuThreadState = CpuThreadState;
}