mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
And "immersive", "audio_resetDevice"
This commit is contained in:
@@ -85,7 +85,7 @@ bool AndroidVulkanContext::InitAPI() {
|
||||
INFO_LOG(G3D, "Creating Vulkan device");
|
||||
if (g_Vulkan->CreateDevice() != VK_SUCCESS) {
|
||||
INFO_LOG(G3D, "Failed to create vulkan device: %s", g_Vulkan->InitError().c_str());
|
||||
System_SendMessage("toast", "No Vulkan driver found. Using OpenGL instead.");
|
||||
System_Toast("No Vulkan driver found. Using OpenGL instead.");
|
||||
g_Vulkan->DestroyInstance();
|
||||
delete g_Vulkan;
|
||||
g_Vulkan = nullptr;
|
||||
|
||||
@@ -1033,6 +1033,9 @@ void System_Notify(SystemNotification notification) {
|
||||
case SystemNotification::FORCE_RECREATE_ACTIVITY:
|
||||
PushCommand("recreate", "");
|
||||
break;
|
||||
case SystemNotification::IMMERSIVE_MODE_CHANGE:
|
||||
PushCommand("immersive", "");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1062,16 +1065,16 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
|
||||
|
||||
case SystemRequestType::CAMERA_COMMAND:
|
||||
PushCommand("camera_command", param1);
|
||||
break;
|
||||
return true;
|
||||
case SystemRequestType::GPS_COMMAND:
|
||||
PushCommand("gps_command", param1);
|
||||
break;
|
||||
return true;
|
||||
case SystemRequestType::MICROPHONE_COMMAND:
|
||||
PushCommand("microphone_command", param1);
|
||||
break;
|
||||
return true;
|
||||
case SystemRequestType::SHARE_TEXT:
|
||||
PushCommand("share_text", param1);
|
||||
break;
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user