mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Add facility to run callbacks on the window thread
This commit is contained in:
@@ -144,3 +144,9 @@ void System_ShowFileInFolder(const Path &path) {
|
||||
void System_BrowseForFolder(RequesterToken token, std::string_view title, const Path &initialPath, RequestCallback callback, RequestFailedCallback failedCallback) {
|
||||
g_requestManager.MakeSystemRequest(SystemRequestType::BROWSE_FOR_FOLDER, token, callback, failedCallback, title, initialPath.ToCString(), 0);
|
||||
}
|
||||
|
||||
void System_RunCallbackInWndProc(void (*callback)(void *, void *), void *userdata) {
|
||||
int64_t castPtr = (int64_t)callback;
|
||||
int64_t castUserData = (int64_t)userdata;
|
||||
g_requestManager.MakeSystemRequest(SystemRequestType::RUN_CALLBACK_IN_WNDPROC, NO_REQUESTER_TOKEN, nullptr, nullptr, "", "", castPtr, castUserData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user