commit
197ff8e097
6 changed files with 32 additions and 117 deletions
|
@ -4,6 +4,9 @@
|
||||||
PKG_NAME="ppsspp-sa"
|
PKG_NAME="ppsspp-sa"
|
||||||
PKG_REV="1"
|
PKG_REV="1"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
|
PKG_SITE="https://github.com/hrydgard/ppsspp"
|
||||||
|
PKG_URL="${PKG_SITE}.git"
|
||||||
|
PKG_VERSION="4a92275"
|
||||||
PKG_LICENSE="GPLv2"
|
PKG_LICENSE="GPLv2"
|
||||||
PKG_DEPENDS_TARGET="toolchain ffmpeg libzip SDL2 zlib zip"
|
PKG_DEPENDS_TARGET="toolchain ffmpeg libzip SDL2 zlib zip"
|
||||||
PKG_SHORTDESC="PPSSPPDL"
|
PKG_SHORTDESC="PPSSPPDL"
|
||||||
|
@ -12,18 +15,14 @@ GET_HANDLER_SUPPORT="git"
|
||||||
|
|
||||||
PKG_PATCH_DIRS+="${DEVICE}"
|
PKG_PATCH_DIRS+="${DEVICE}"
|
||||||
|
|
||||||
case ${DEVICE} in
|
#case ${DEVICE} in
|
||||||
RK35*)
|
# RK35*)
|
||||||
PKG_VERSION="40386bca08d33c2d6584d6e7da4efee9bfeb3f96"
|
# PKG_VERSION="40386bca08d33c2d6584d6e7da4efee9bfeb3f96"
|
||||||
PKG_SITE="https://github.com/hrydgard/ppsspp"
|
# ;;
|
||||||
PKG_URL="${PKG_SITE}.git"
|
# *)
|
||||||
;;
|
# PKG_VERSION="4a92275"
|
||||||
*)
|
# ;;
|
||||||
PKG_VERSION="be83355"
|
#esac
|
||||||
PKG_SITE="https://github.com/hrydgard/ppsspp"
|
|
||||||
PKG_URL="${PKG_SITE}.git"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
PKG_CMAKE_OPTS_TARGET=" -DUSE_SYSTEM_FFMPEG=OFF \
|
PKG_CMAKE_OPTS_TARGET=" -DUSE_SYSTEM_FFMPEG=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
MRFIXIT: Add the option to exit the emulator completely from the pause screen
|
|
||||||
Fewtarius: Update for 351ELEC
|
|
||||||
--- a/UI/PauseScreen.h
|
|
||||||
+++ b/UI/PauseScreen.h
|
|
||||||
@@ -40,6 +40,7 @@
|
|
||||||
private:
|
|
||||||
UI::EventReturn OnGameSettings(UI::EventParams &e);
|
|
||||||
UI::EventReturn OnExitToMenu(UI::EventParams &e);
|
|
||||||
+ UI::EventReturn OnExitToBatocera(UI::EventParams &e);
|
|
||||||
UI::EventReturn OnReportFeedback(UI::EventParams &e);
|
|
||||||
|
|
||||||
UI::EventReturn OnRewind(UI::EventParams &e);
|
|
||||||
--- a/UI/PauseScreen.cpp
|
|
||||||
+++ b/UI/PauseScreen.cpp
|
|
||||||
@@ -386,6 +386,8 @@
|
|
||||||
rightColumnItems->Add(new Choice(mm->T("Exit")))->OnClick.Handle(this, &GamePauseScreen::OnExitToMenu);
|
|
||||||
} else {
|
|
||||||
rightColumnItems->Add(new Choice(pa->T("Exit to menu")))->OnClick.Handle(this, &GamePauseScreen::OnExitToMenu);
|
|
||||||
+ rightColumnItems->Add(new Spacer(25.0));
|
|
||||||
+ rightColumnItems->Add(new Choice(pa->T("Exit to JELOS")))->OnClick.Handle(this, &GamePauseScreen::OnExitToBatocera);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -437,6 +439,31 @@
|
|
||||||
return UI::EVENT_DONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
+UI::EventReturn GamePauseScreen::OnExitToBatocera(UI::EventParams &e) {
|
|
||||||
+ if (g_Config.bPauseMenuExitsEmulator) {
|
|
||||||
+ System_SendMessage("finish", "");
|
|
||||||
+ } else {
|
|
||||||
+ TriggerFinish(DR_OK);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ System_SendMessage("event", "exitprogram");
|
|
||||||
+
|
|
||||||
+ // Request the framework to exit cleanly.
|
|
||||||
+ System_SendMessage("finish", "");
|
|
||||||
+
|
|
||||||
+ // However, let's make sure the config was saved, since it may not have been.
|
|
||||||
+ g_Config.Save("MainScreen::OnExit");
|
|
||||||
+
|
|
||||||
+#ifdef __ANDROID__
|
|
||||||
+#ifdef ANDROID_NDK_PROFILER
|
|
||||||
+ moncleanup();
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+ UpdateUIState(UISTATE_EXIT);
|
|
||||||
+ return UI::EVENT_DONE;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
UI::EventReturn GamePauseScreen::OnReportFeedback(UI::EventParams &e) {
|
|
||||||
screenManager()->push(new ReportScreen(gamePath_));
|
|
||||||
return UI::EVENT_DONE;
|
|
|
@ -1,13 +1,14 @@
|
||||||
diff -rupN PPSSPPSDL.orig/SDL/SDLMain.cpp PPSSPPSDL/SDL/SDLMain.cpp
|
diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
|
||||||
--- PPSSPPSDL.orig/SDL/SDLMain.cpp 2022-12-10 09:06:22.351896562 -0500
|
index d81157d83..28db181b4 100644
|
||||||
+++ PPSSPPSDL/SDL/SDLMain.cpp 2022-12-10 09:07:31.488519195 -0500
|
--- a/SDL/SDLMain.cpp
|
||||||
@@ -460,11 +460,11 @@ void ToggleFullScreenIfFlagSet(SDL_Windo
|
+++ b/SDL/SDLMain.cpp
|
||||||
|
@@ -539,11 +539,11 @@ void UpdateWindowState(SDL_Window *window) {
|
||||||
|
|
||||||
Uint32 window_flags = SDL_GetWindowFlags(window);
|
Uint32 window_flags = SDL_GetWindowFlags(window);
|
||||||
if (g_ToggleFullScreenType == -1) {
|
if (g_windowState.toggleFullScreenType == -1) {
|
||||||
- window_flags ^= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
- window_flags ^= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||||
+ window_flags ^= SDL_WINDOW_FULLSCREEN;
|
+ window_flags ^= SDL_WINDOW_FULLSCREEN;
|
||||||
} else if (g_ToggleFullScreenType == 1) {
|
} else if (g_windowState.toggleFullScreenType == 1) {
|
||||||
- window_flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
- window_flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||||
+ window_flags |= SDL_WINDOW_FULLSCREEN;
|
+ window_flags |= SDL_WINDOW_FULLSCREEN;
|
||||||
} else {
|
} else {
|
||||||
|
@ -16,7 +17,7 @@ diff -rupN PPSSPPSDL.orig/SDL/SDLMain.cpp PPSSPPSDL/SDL/SDLMain.cpp
|
||||||
}
|
}
|
||||||
SDL_SetWindowFullscreen(window, window_flags);
|
SDL_SetWindowFullscreen(window, window_flags);
|
||||||
}
|
}
|
||||||
@@ -570,7 +570,7 @@ int main(int argc, char *argv[]) {
|
@@ -654,7 +654,7 @@ int main(int argc, char *argv[]) {
|
||||||
Uint32 mode = 0;
|
Uint32 mode = 0;
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
if (!strcmp(argv[i],"--fullscreen")) {
|
if (!strcmp(argv[i],"--fullscreen")) {
|
||||||
|
@ -25,7 +26,7 @@ diff -rupN PPSSPPSDL.orig/SDL/SDLMain.cpp PPSSPPSDL/SDL/SDLMain.cpp
|
||||||
g_Config.iForceFullScreen = 1;
|
g_Config.iForceFullScreen = 1;
|
||||||
} else if (set_xres == -2)
|
} else if (set_xres == -2)
|
||||||
set_xres = parseInt(argv[i]);
|
set_xres = parseInt(argv[i]);
|
||||||
@@ -643,19 +643,19 @@ int main(int argc, char *argv[]) {
|
@@ -727,19 +727,19 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
// Force fullscreen if the resolution is too low to run windowed.
|
// Force fullscreen if the resolution is too low to run windowed.
|
||||||
if (g_DesktopWidth < 480 * 2 && g_DesktopHeight < 272 * 2) {
|
if (g_DesktopWidth < 480 * 2 && g_DesktopHeight < 272 * 2) {
|
||||||
|
@ -45,10 +46,10 @@ diff -rupN PPSSPPSDL.orig/SDL/SDLMain.cpp PPSSPPSDL/SDL/SDLMain.cpp
|
||||||
|
|
||||||
- if (mode & SDL_WINDOW_FULLSCREEN_DESKTOP) {
|
- if (mode & SDL_WINDOW_FULLSCREEN_DESKTOP) {
|
||||||
+ if (mode & SDL_WINDOW_FULLSCREEN) {
|
+ if (mode & SDL_WINDOW_FULLSCREEN) {
|
||||||
pixel_xres = g_DesktopWidth;
|
g_display.pixel_xres = g_DesktopWidth;
|
||||||
pixel_yres = g_DesktopHeight;
|
g_display.pixel_yres = g_DesktopHeight;
|
||||||
if (g_Config.iForceFullScreen == -1)
|
if (g_Config.iForceFullScreen == -1)
|
||||||
@@ -726,7 +726,7 @@ int main(int argc, char *argv[]) {
|
@@ -807,7 +807,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
// Use the setting from the config when initing the window.
|
// Use the setting from the config when initing the window.
|
||||||
if (g_Config.UseFullScreen())
|
if (g_Config.UseFullScreen())
|
||||||
|
|
|
@ -1,20 +1,11 @@
|
||||||
diff -rupN PPSSPPSDL.orig/SDL/SDLMain.cpp PPSSPPSDL/SDL/SDLMain.cpp
|
diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
|
||||||
--- PPSSPPSDL.orig/SDL/SDLMain.cpp 2022-06-06 07:03:21.558185006 -0400
|
index d81157d83..3eaf5af42 100644
|
||||||
+++ PPSSPPSDL/SDL/SDLMain.cpp 2022-06-06 07:29:43.562901323 -0400
|
--- a/SDL/SDLMain.cpp
|
||||||
@@ -781,9 +781,7 @@ int main(int argc, char *argv[]) {
|
+++ b/SDL/SDLMain.cpp
|
||||||
printf("Init from thread error: '%s'\n", error_message.c_str());
|
@@ -996,12 +996,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
g_Config.iWindowWidth = new_width;
|
||||||
|
g_Config.iWindowHeight = new_height;
|
||||||
-#ifdef MOBILE_DEVICE
|
|
||||||
SDL_ShowCursor(SDL_DISABLE);
|
|
||||||
-#endif
|
|
||||||
|
|
||||||
if (!useEmuThread) {
|
|
||||||
NativeInitGraphics(graphicsContext);
|
|
||||||
@@ -874,12 +872,7 @@ int main(int argc, char *argv[]) {
|
|
||||||
g_Config.iForceFullScreen = -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- // Hide/Show cursor correctly toggling fullscreen
|
- // Hide/Show cursor correctly toggling fullscreen
|
||||||
- if (lastUIState == UISTATE_INGAME && fullscreen && !g_Config.bShowTouchControls) {
|
- if (lastUIState == UISTATE_INGAME && fullscreen && !g_Config.bShowTouchControls) {
|
||||||
- SDL_ShowCursor(SDL_DISABLE);
|
- SDL_ShowCursor(SDL_DISABLE);
|
||||||
|
@ -25,7 +16,7 @@ diff -rupN PPSSPPSDL.orig/SDL/SDLMain.cpp PPSSPPSDL/SDL/SDLMain.cpp
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1142,10 +1135,7 @@ int main(int argc, char *argv[]) {
|
@@ -1295,10 +1290,7 @@ int main(int argc, char *argv[]) {
|
||||||
#if !defined(MOBILE_DEVICE)
|
#if !defined(MOBILE_DEVICE)
|
||||||
if (lastUIState != GetUIState()) {
|
if (lastUIState != GetUIState()) {
|
||||||
lastUIState = GetUIState();
|
lastUIState = GetUIState();
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
From 335788a932b56149a3204aeda6c885c9136ea4aa Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Unknown W. Brackets" <checkins@unknownbrackets.org>
|
|
||||||
Date: Thu, 16 Feb 2023 19:34:44 -0800
|
|
||||||
Subject: [PATCH] Vulkan: Remove logspam.
|
|
||||||
|
|
||||||
---
|
|
||||||
Common/GPU/Vulkan/VulkanContext.cpp | 1 -
|
|
||||||
1 file changed, 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/Common/GPU/Vulkan/VulkanContext.cpp b/Common/GPU/Vulkan/VulkanContext.cpp
|
|
||||||
index 23b0f8adb036..676860285219 100644
|
|
||||||
--- a/Common/GPU/Vulkan/VulkanContext.cpp
|
|
||||||
+++ b/Common/GPU/Vulkan/VulkanContext.cpp
|
|
||||||
@@ -1663,7 +1663,6 @@ void VulkanDeleteList::PerformDeletes(VulkanContext *vulkan, VmaAllocator alloca
|
|
||||||
}
|
|
||||||
imagesWithAllocs_.clear();
|
|
||||||
for (auto &imageView : imageViews_) {
|
|
||||||
- INFO_LOG(G3D, "deleting imageview %p", imageView);
|
|
||||||
vkDestroyImageView(device, imageView, nullptr);
|
|
||||||
}
|
|
||||||
imageViews_.clear();
|
|
|
@ -19,4 +19,4 @@ fi
|
||||||
|
|
||||||
ARG=${1//[\\]/}
|
ARG=${1//[\\]/}
|
||||||
export SDL_AUDIODRIVER=alsa
|
export SDL_AUDIODRIVER=alsa
|
||||||
${EMUPERF} ppsspp "${ARG}"
|
${EMUPERF} ppsspp --pause-menu-exit "${ARG}"
|
||||||
|
|
Loading…
Reference in a new issue