Port the file browser spawned by the Load button to the new request stuff

This commit is contained in:
Henrik Rydgård committed 2023-03-22 15:36:14 +01:00
1 parent 47ae31e293
commit 70f0ac04af
12 files changed
+63 -17

No files matched your search

+2 -2
View File
@@ -12,10 +12,10 @@ const char *RequestTypeAsString(SystemRequestType type) {
}
}
bool RequestManager::MakeSystemRequest(SystemRequestType type, RequestCallback callback, const std::string &param1, const std::string &param2) {
bool RequestManager::MakeSystemRequest(SystemRequestType type, RequestCallback callback, const std::string &param1, const std::string &param2, int param3) {
int requestId = idCounter_++;
INFO_LOG(SYSTEM, "Making system request %s: id %d, callback_valid %d", RequestTypeAsString(type), requestId, callback != nullptr);
if (!System_MakeRequest(type, requestId, param1, param2)) {
if (!System_MakeRequest(type, requestId, param1, param2, param3)) {
return false;
}