Commit 64df8f0
fix: thin libretro wrapper hijacking RA cores when feature flag is off
PVCoreFactory probed `NSClassFromString("PVRetroArchCore")` to decide whether
the legacy RA wrapper was available, but the actual Swift class is exposed to
the ObjC runtime as `PVRetroArch.PVRetroArchCoreCore` (module-prefixed). The
probe always returned nil, so `!pvRetroArchCoreExists` was always true and the
thin wrapper swap fired unconditionally — even with the feature flag disabled.
Probe the principleClass we were actually asked to load instead. If it resolves
the legacy wrapper is in this build, and we only swap when the feature flag
explicitly opts in.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7d569e5 commit 64df8f0
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
0 commit comments