mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Fix/prevent crashes when MainWindow is closed before LoadFile() completes, or when it gets certain messages before TheThread completes initialization.
Fix missing ppsspp.ini loading log (only 1 unimportant line though). Fix loading ui_atlas.zim failure when [General]Browse = True is set in ppsspp.ini. Some other minor fixes as well.
This commit is contained in:
1 parent
ce2c18d2fe
commit
bb5fce600e
11 files changed
+144
-61
No files matched your search
@@ -110,7 +110,7 @@ namespace DSound
|
||||
int lastPos;
|
||||
short realtimeBuffer[BUFSIZE * 2];
|
||||
|
||||
DWORD WINAPI soundThread(void *)
|
||||
unsigned int WINAPI soundThread(void *)
|
||||
{
|
||||
currentPos = 0;
|
||||
lastPos = 0;
|
||||
@@ -175,8 +175,7 @@ namespace DSound
|
||||
memset(p1,0,num1);
|
||||
dsBuffer->Unlock(p1,num1,0,0);
|
||||
totalRenderedBytes = -bufferSize;
|
||||
DWORD h;
|
||||
hThread = CreateThread(0,0,soundThread,0,0,&h);
|
||||
hThread = (HANDLE)_beginthreadex(0, 0, soundThread, 0, 0, 0);
|
||||
SetThreadPriority(hThread, THREAD_PRIORITY_ABOVE_NORMAL);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user