mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Fix the background image selector on MacOS and Linux (with pfd)
Forgot that the backends need changes too, after I split out image file selection from the other types.
This commit is contained in:
1 parent
4d81153479
commit
4edbc14025
4 files changed
+59
-3
No files matched your search
@@ -23,10 +23,34 @@ RequestManager g_requestManager;
|
||||
|
||||
const char *RequestTypeAsString(SystemRequestType type) {
|
||||
switch (type) {
|
||||
case SystemRequestType::INPUT_TEXT_MODAL: return "INPUT_TEXT_MODAL";
|
||||
case SystemRequestType::BROWSE_FOR_IMAGE: return "BROWSE_FOR_IMAGE";
|
||||
case SystemRequestType::BROWSE_FOR_FILE: return "BROWSE_FOR_FILE";
|
||||
case SystemRequestType::BROWSE_FOR_FOLDER: return "BROWSE_FOR_FOLDER";
|
||||
case SystemRequestType::BROWSE_FOR_FILE_SAVE: return "BROWSE_FOR_FILE_SAVE";
|
||||
case SystemRequestType::INPUT_TEXT_MODAL: return "INPUT_TEXT_MODAL";
|
||||
case SystemRequestType::ASK_USERNAME_PASSWORD: return "ASK_USERNAME_PASSWORD";
|
||||
case SystemRequestType::EXIT_APP: return "EXIT_APP";
|
||||
case SystemRequestType::RESTART_APP: return "RESTART_APP";
|
||||
case SystemRequestType::RECREATE_ACTIVITY: return "RECREATE_ACTIVITY";
|
||||
case SystemRequestType::COPY_TO_CLIPBOARD: return "COPY_TO_CLIPBOARD";
|
||||
case SystemRequestType::SHARE_TEXT: return "SHARE_TEXT";
|
||||
case SystemRequestType::SET_WINDOW_TITLE: return "SET_WINDOW_TITLE";
|
||||
case SystemRequestType::TOGGLE_FULLSCREEN_STATE: return "TOGGLE_FULLSCREEN_STATE";
|
||||
case SystemRequestType::GRAPHICS_BACKEND_FAILED_ALERT: return "GRAPHICS_BACKEND_FAILED_ALERT";
|
||||
case SystemRequestType::CREATE_GAME_SHORTCUT: return "CREATE_GAME_SHORTCUT";
|
||||
case SystemRequestType::SHOW_FILE_IN_FOLDER: return "SHOW_FILE_IN_FOLDER";
|
||||
case SystemRequestType::SEND_DEBUG_OUTPUT: return "SEND_DEBUG_OUTPUT";
|
||||
case SystemRequestType::SEND_DEBUG_SCREENSHOT: return "SEND_DEBUG_SCREENSHOT";
|
||||
case SystemRequestType::NOTIFY_UI_EVENT: return "NOTIFY_UI_EVENT";
|
||||
case SystemRequestType::SET_KEEP_SCREEN_BRIGHT: return "SET_KEEP_SCREEN_BRIGHT";
|
||||
case SystemRequestType::CAMERA_COMMAND: return "CAMERA_COMMAND";
|
||||
case SystemRequestType::GPS_COMMAND: return "GPS_COMMAND";
|
||||
case SystemRequestType::INFRARED_COMMAND: return "INFRARED_COMMAND";
|
||||
case SystemRequestType::MICROPHONE_COMMAND: return "MICROPHONE_COMMAND";
|
||||
case SystemRequestType::RUN_CALLBACK_IN_WNDPROC: return "RUN_CALLBACK_IN_WNDPROC";
|
||||
case SystemRequestType::MOVE_TO_TRASH: return "MOVE_TO_TRASH";
|
||||
case SystemRequestType::IAP_RESTORE_PURCHASES: return "IAP_RESTORE_PURCHASES";
|
||||
case SystemRequestType::IAP_MAKE_PURCHASE: return "IAP_MAKE_PURCHASE";
|
||||
default: return "N/A";
|
||||
}
|
||||
}
|
||||
@@ -48,7 +72,7 @@ bool RequestManager::MakeSystemRequest(SystemRequestType type, RequesterToken to
|
||||
callbackMap_[requestId] = { callback, failedCallback, token };
|
||||
}
|
||||
|
||||
VERBOSE_LOG(Log::System, "Making system request %s: id %d", RequestTypeAsString(type), requestId);
|
||||
INFO_LOG(Log::System, "Making system request %s: id %d", RequestTypeAsString(type), requestId);
|
||||
std::string p1(param1);
|
||||
std::string p2(param2);
|
||||
// TODO: Convert to string_view
|
||||
|
||||
Reference in new issue
Block a user