mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
UICommon/AutoUpdate: Add macOS support
This commit is contained in:
@ -15,11 +15,15 @@
|
||||
void run_on_main(std::function<void()> fnc)
|
||||
{
|
||||
if (![NSThread isMainThread])
|
||||
{
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
fnc();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
fnc();
|
||||
}
|
||||
}
|
||||
|
||||
NSWindow* GetWindow()
|
||||
|
Reference in New Issue
Block a user