This changes threadInit to set thread/argument fields before calling svcCreateThread().
This is desirable because svcCreateThread will cause an attached debugger to receive a DebugEvent, at which point the debugger will begin parsing information about the thread/etc.
As is, it is impossible for the debugger to reconstruct information about the thread on creation; by setting the fields appropriately beforehand, they can be parsed from the ThreadEntryArgs etc.
This changes threadInit to set thread/argument fields before calling svcCreateThread().
This is desirable because svcCreateThread will cause an attached debugger to receive a DebugEvent, at which point the debugger will begin parsing information about the thread/etc.
As is, it is impossible for the debugger to reconstruct information about the thread on creation; by setting the fields appropriately beforehand, they can be parsed from the ThreadEntryArgs etc.