mirror of https://github.com/mgba-emu/mgba.git
3dS: Attempt to use Core 2 for threads
This commit is contained in:
parent
d008291fc8
commit
3e9a1a399e
1
CHANGES
1
CHANGES
|
@ -37,6 +37,7 @@ Misc:
|
|||
- All: Faster memory read/write
|
||||
- Qt: Make audio channel/video layer options shortcut mappable
|
||||
- GBA Memory: Optimize stalling behavior
|
||||
- 3DS: Attempt to use Core 2 for threads
|
||||
|
||||
0.4.1: (2016-07-11)
|
||||
Bugfixes:
|
||||
|
|
|
@ -107,6 +107,11 @@ static inline int ThreadCreate(Thread* thread, ThreadEntry entry, void* context)
|
|||
if (!thread->stack) {
|
||||
return 1;
|
||||
}
|
||||
bool isNew3DS;
|
||||
APT_CheckNew3DS(&isNew3DS);
|
||||
if (isNew3DS && svcCreateThread(&thread->handle, entry, (u32) context, (u32*) &thread->stack[0x8000], 0x18, 2) == 0) {
|
||||
return 0;
|
||||
}
|
||||
return svcCreateThread(&thread->handle, entry, (u32) context, (u32*) &thread->stack[0x8000], 0x18, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue