mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Frame: Remove callback function prototypes from header
Gets rid of more direct usages of the main_frame global, keeping the callbacks internal to the frame itself.
This commit is contained in:
parent
ee0e6fa09c
commit
c457ee4995
6 changed files with 27 additions and 38 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -61,6 +62,6 @@ void UndoLoadState();
|
|||
void Flush();
|
||||
|
||||
// for calling back into UI code without introducing a dependency on it in core
|
||||
typedef void (*CallbackFunc)(void);
|
||||
void SetOnAfterLoadCallback(CallbackFunc callback);
|
||||
using AfterLoadCallbackFunc = std::function<void()>;
|
||||
void SetOnAfterLoadCallback(AfterLoadCallbackFunc callback);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue