Commit Graph
47 Commits
Author SHA1 Message Date
Henrik RydgårdandClaude Opus 5 b6b8780cb9 iOS: Remove some dead code
- AudioEngine.mm/.h: not in the source list at all, only in the ARC
  set_source_files_properties list, and written for manual retain/release
  ([super dealloc]), so it couldn't have compiled under ARC anyway. The actual
  audio path is iOSCoreAudio.mm.
- DisplayManager.mm: empty file, referenced nowhere.
- iOSCoreAudioSetDisplayConnected: never called, so g_displayConnected was
  always false and the external-display branch in UpdateSession unreachable.
  Also dropped an unused local there.
- AppDelegate: the "screen" property was never assigned, so both view
  controllers were setting their frame from [nil bounds], i.e. CGRectZero. The
  window sizes the root view anyway. Also removed the stale launchPPSSPP:argv:
  declaration (it lives on SceneDelegate now), a forward declaration of a
  PPSSPPViewController protocol that doesn't exist, and an unreachable return.
- getView: declared on the base class and implemented identically in both
  subclasses, called by nobody.
- bindDefaultFBO: moved the empty implementation to the base class so it isn't
  missing there, and dropped the Metal no-op override.
- The unused delta/lastTimestamp computation in displayLinkFired.

Also fixed the viewWillAppear/viewWillDisappear log messages in the GL view
controller, which claimed to resume and pause the display link but don't.

The getView and bindDefaultFBO changes clear three -Wincomplete-implementation
warnings, and the AppDelegate.h one clears a fourth.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZk5y4Fzw811WJoNWZb8Sc
2026-08-07 06:56:07 +02:00
Henrik RydgårdandClaude Opus 5 89f7094513 iOS: Fix use-after-free when Vulkan init fails
viewDidLoad deleted the graphics context on InitAPI failure but left the member
pointing at the freed object, and then kept going - runVulkanRenderLoop and
shutdown would both use it. Null it out instead; both already check.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZk5y4Fzw811WJoNWZb8Sc
2026-08-06 20:56:37 +02:00
Henrik Rydgård 0f76b6977f Replace the iOS Vulkan graphics context with the new generic one 2026-07-26 19:10:46 +02:00
Henrik Rydgård 3784bbe0e6 Delete the AndroidVulkanContext, replace with the generic VulkanGraphicsContext 2026-07-26 19:10:46 +02:00
Henrik Rydgård 3eb056ad86 Move Common/GraphicsContext.h to Common/GPU/GraphicsContext.h 2026-07-26 13:58:17 +02:00
Henrik Rydgård 7f218acc53 Change the GraphicsContext interface to be more consistent 2026-07-26 10:22:00 +02:00
Henrik Rydgård 85f8715660 Break the circular dependency caused by putting EmuThread in core using an interface 2026-07-24 15:31:42 +02:00
Henrik Rydgård 42970d1118 Modernize iOS screen resize code a little. 2026-02-13 18:16:26 +01:00
Henrik Rydgård 7b84e42218 Minor step forward 2026-02-13 18:16:26 +01:00
Henrik Rydgård 8e06e4c5c2 iOS: Delete untested multi-screen-management code that uses deprecated APIs 2026-02-13 18:16:26 +01:00
Henrik Rydgård 138be54f6a More misc work 2025-10-28 11:54:07 +01:00
Henrik Rydgård df9c575a22 iOS: Show the status bar (overlay style) in portrait mode. 2025-10-28 11:54:07 +01:00
Henrik Rydgård c7370c2e72 Move even more stuff into PPSSPPBaseViewController 2025-10-27 21:38:27 +01:00
Henrik Rydgård d5834d0f84 Move a lot more stuff into PPSSPPBaseViewController 2025-10-27 21:11:39 +01:00
Henrik Rydgård f825db5551 Move camera and location support to PPSSPPBaseViewController 2025-10-27 20:44:34 +01:00
Henrik Rydgård 5e41be136b Move photo picking support to PPSSPPBaseViewController 2025-10-27 20:29:00 +01:00
Henrik Rydgård 052e21b903 Increase the safe inset margins slightly 2025-10-27 19:24:08 +01:00
Henrik Rydgård e2b21d26bf Rotation on iOS fixes: Make sure the setting is saved, etc. 2025-10-22 15:54:00 +02:00
Henrik Rydgård 1c49ad7b29 Support screen rotation on iOS (unrestricted) 2025-10-22 15:13:21 +02:00
Henrik Rydgård 042cf87248 Rework the present mode settings, refactor. 2025-10-20 21:28:38 +02:00
Henrik Rydgård 80bd32325c Move the present mode from the CreateInfo to InitSwapchain 2025-10-20 16:33:34 +02:00
Henrik Rydgård c0b7ecc686 Refactor: Unify the Vulkan init info logic 2025-08-21 01:01:16 +02:00
Henrik Rydgård 164dd53a89 More IAP improvements 2025-05-25 11:22:05 +02:00
Henrik Rydgård cd21f6a526 Add a gold icon to alternate icons. NOTE: It must not be named AppIconGold! 2025-05-25 11:22:05 +02:00
Henrik Rydgård 758dcf6afc More icon stuff 2025-05-25 11:22:05 +02:00
Henrik Rydgård c3ed94b721 More icon work 2025-05-25 11:22:05 +02:00
Henrik Rydgård 2dbb54667d IAP work 2025-05-25 11:22:04 +02:00
Henrik Rydgård 6035ef0652 Implement image file picker on iOS, various buildfixes 2025-05-19 20:41:16 +02:00
Henrik Rydgård 67dfbfe97e Add developer setting to prevent loading overlays (and other 'implicit' Vulkan layers) 2025-04-10 18:56:05 +02:00
Henrik Rydgård 670ff21529 Make the Vulkan init flags a proper enum class 2025-04-10 18:16:05 +02:00
Henrik Rydgård e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård 305418813a Add option to control the iOS app switching mode 2024-07-05 20:08:12 +02:00
Henrik Rydgård 21df698a20 iOS: Enable "double-swipe" to switch apps
To prevent accidental app switching.

Unfortunately, the way to do this is to disable auto-hiding of the swipe indicator.
Another strange Apple quirk.
2024-06-20 11:28:35 +02:00
Henrik Rydgård 898e117b6b Do the same for the Metal/Vulkan viewcontroller. 2024-06-19 23:09:58 +02:00
Henrik Rydgård 78a3cb5689 Fix for non-app-store builds 2024-06-05 23:30:22 +02:00
Henrik Rydgård 584d07ea8e iOS: Implement basic physical keyboard support 2024-06-05 23:27:03 +02:00
Henrik Rydgård 338758f430 iOS: Fix "Home" button on controllers (like the PS logo button on a PS4 controller) 2024-06-05 15:01:02 +02:00
Henrik Rydgård 7b3f0aeab2 iOS: Implement accelerometer support 2024-06-04 11:51:09 +02:00
Henrik Rydgård bd13653153 iOS: Call hideKeyboard from a couple more places 2024-06-01 12:28:13 +02:00
Henrik Rydgård 606a895985 iOS: Update recents paths on load
Fixes the main part of #19211
2024-05-29 10:12:20 +02:00
Henrik Rydgård 044451d557 iOS: Enable ARC on all the .mm files (oops) 2024-05-26 10:32:31 +02:00
Henrik Rydgård c26de64d0f iOS: Pass through touches near the task switcher only in-game. Makes the UI better behaved. 2024-05-26 10:27:14 +02:00
Henrik Rydgård f864f52b64 More app lifecycle work. Switching between Vulkan and OpenGL now works. 2024-05-24 11:48:44 +02:00
Henrik Rydgård aa3256f4e8 Turn off the Vulkan thread when switching away from the app. 2024-05-23 12:52:16 +02:00
Henrik Rydgård b66f7ea909 Vulkan on iOS: Hook up remaining functionality 2024-05-23 09:41:00 +02:00
Henrik Rydgård 5f79046e01 Get Vulkan rendering on iOS (still, need to hook up input etc) 2024-05-23 09:41:00 +02:00
Henrik Rydgård 09e2c78a33 Add ViewControllerMetal placeholders 2024-05-23 09:41:00 +02:00