Merge pull request #21119 from white-axe/libretro-vfs

Fix libretro builds for iOS and Windows
This commit is contained in:
Henrik Rydgård
2026-01-12 18:34:21 +01:00
committed by GitHub
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1676,7 +1676,7 @@ if(ANDROID)
endif()
endif()
if (IOS)
if (IOS AND NOT LIBRETRO)
set(nativeExtra ${nativeExtra} ${NativeAppSource})
endif()
+1 -1
View File
@@ -6,7 +6,7 @@
class LibretroD3D11Context : public LibretroHWRenderContext {
public:
LibretroD3D11Context() : LibretroHWRenderContext(RETRO_HW_CONTEXT_DIRECT3D, 11) {}
LibretroD3D11Context() : LibretroHWRenderContext(RETRO_HW_CONTEXT_D3D11, 11) {}
bool Init() override;
void SwapBuffers() override;
+1 -1
View File
@@ -133,7 +133,7 @@ LibretroGraphicsContext *LibretroGraphicsContext::CreateGraphicsContext() {
#endif
#ifdef _WIN32
if (preferred == RETRO_HW_CONTEXT_DUMMY || preferred == RETRO_HW_CONTEXT_DIRECT3D) {
if (preferred == RETRO_HW_CONTEXT_DUMMY || preferred == RETRO_HW_CONTEXT_D3D11) {
ctx = new LibretroD3D11Context();
if (ctx->Init()) {