From a4a1752f617a61b02d9f7cd0d2203a380c958ffc Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Tue, 11 Nov 2025 09:39:39 -0500 Subject: [PATCH 1/2] libretro: fix mac build --- libretro/libretro.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index ee175cf4da..8b6da35538 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -2039,7 +2039,10 @@ void System_AudioClear() {} std::vector System_GetCameraDeviceList() { return std::vector(); } bool System_AudioRecordingIsAvailable() { return false; } bool System_AudioRecordingState() { return false; } - +#elif PPSSPP_PLATFORM(MAC) +std::vector __mac_getDeviceList() { return std::vector(); } +int __mac_startCapture(int width, int height) { return 0; } +int __mac_stopCapture() { return 0; } #endif // TODO: To avoid having to define these here, these should probably be turned into system "requests". From 1f40174af0b4a3151a835f5aa6b663ddf8c244d3 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Tue, 11 Nov 2025 09:44:25 -0500 Subject: [PATCH 2/2] add libretro mac build to github workflow --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed9a522dbd..1bb246ba79 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -234,6 +234,12 @@ jobs: cxx: clang++ args: ./b.sh --headless --unittest --fat --no-png --no-sdl2 id: macos + - os: macos-latest + extra: libretro_mac + cc: clang + cxx: clang++ + args: ./b.sh --libretro + id: macos-libretro - os: macos-latest extra: ios cc: clang