Files
David IsztlandClaude Opus 4.8 f17460df0d refactor: move iOS frontend to platforms/ios on single shared core
Snapshot the iOS-refresh app (React Native shell + Objective-C/Swift iOS
runtime: AppDelegate, SceneDelegate, GamepadHaptics, ARMSX2Bridge) into
platforms/ios/. Delete its vendored PCSX2 core (794 pcsx2 + 150 common files)
and its vendored 3rdparty (~11.8k files); the repo-root core is the single
source of truth.

Relocate the genuine iOS-only core additions (MacOSStubs, QAProbe, TestHarness,
SifRingBuffer.h, common/PNGStub.cpp) into the root core, guarded by an
ARMSX2_IOS (CMAKE_SYSTEM_NAME==iOS) branch in pcsx2/CMakeLists.txt. The
NEON SPU2 sources are now shared by both arm64 mobile targets (ANDROID OR iOS).
Dropped cruft: *.try/*.ref backups, stray x86/microVU_impl.cpp, leaked
common/Android/* JNI files, and the adrenotools submodule (android-only).

Rewire the iOS native CMake to source the root {common,pcsx2,3rdparty} via an
ARMSX2_ROOT var, preserving all iOS-SDK/bundle/JIT-entitlement/Metal config.

NOT yet compiled against Xcode -- build validation is CI's job.
See REFACTOR_STATUS.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 20:32:58 +02:00

12 lines
516 B
C++

// [P63] PNG stubs for macOS build (libpng not linked)
#include <TargetConditionals.h>
#if !TARGET_OS_IPHONE
#include "Image.h"
#include <cstdio>
#include <vector>
bool PNGFileLoader(RGBA8Image* img, const char* fn, FILE* fp) { return false; }
bool PNGFileSaver(const RGBA8Image& img, const char* fn, FILE* fp, u8 q) { return false; }
bool PNGBufferLoader(RGBA8Image* img, const void* buf, size_t len) { return false; }
bool PNGBufferSaver(const RGBA8Image& img, std::vector<u8>* buf, u8 q) { return false; }
#endif