Permalink
Browse files

Adhoc: Remove incorrect thread create param.

This was the options pointer, not the attr, so was always generating an
error (which was also reported.)  Also, we don't support kernel threads in
any real way, so let's just not pass the flag at all.

Same behavior as before, less the spurious error.
  • Loading branch information...
unknownbrackets committed Dec 1, 2017
1 parent 4049e28 commit a652617ba0a493ad5b3622b1211797c88c2dc583
Showing with 1 addition and 1 deletion.
  1. +1 −1 Core/HLE/sceNetAdhoc.cpp
@@ -174,7 +174,7 @@ u32 sceNetAdhocInit() {
// TODO: Should use a separated threads for friendFinder, matchingEvent, and matchingInput and created on AdhocctlInit & AdhocMatchingStart instead of here
#define PSP_THREAD_ATTR_KERNEL 0x00001000 // PSP_THREAD_ATTR_KERNEL is located in sceKernelThread.cpp instead of sceKernelThread.h :(
//threadAdhocID = __KernelCreateThreadInternal("AdhocThread", __KernelGetCurThreadModuleId(), dummyThreadHackAddr, 0x30, 4096, PSP_THREAD_ATTR_KERNEL);
threadAdhocID = __KernelCreateThread("AdhocThread", __KernelGetCurThreadModuleId(), dummyThreadHackAddr, 0x10, 0x1000, 0, PSP_THREAD_ATTR_KERNEL);
threadAdhocID = __KernelCreateThread("AdhocThread", __KernelGetCurThreadModuleId(), dummyThreadHackAddr, 0x10, 0x1000, 0, 0);
if (threadAdhocID > 0) {
__KernelStartThread(threadAdhocID, 0, 0);
}

0 comments on commit a652617

Please sign in to comment.