mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
GTK: thread-safe refresh. doesn't freeze randomly anymore.
This commit is contained in:
@ -3,6 +3,9 @@
|
||||
|
||||
uiInitOptions options;
|
||||
|
||||
// kind of a hack
|
||||
GThread* gtkthread;
|
||||
|
||||
const char *uiInit(uiInitOptions *o)
|
||||
{
|
||||
GError *err = NULL;
|
||||
@ -16,6 +19,9 @@ const char *uiInit(uiInitOptions *o)
|
||||
}
|
||||
initAlloc();
|
||||
loadFutures();
|
||||
|
||||
gtkthread = g_thread_self();
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user