diff --git a/src/Core.cpp b/src/Core.cpp index 9a73577..1b1f426 100644 --- a/src/Core.cpp +++ b/src/Core.cpp @@ -87,6 +87,11 @@ int Core::initSystem() { asset_manager->addCache(new AssetCache(android_app_dir.c_str())); // Load in the application's RW external location asset_manager->addCache(new AssetCache(android_ext_dir.c_str())); +#elif __IPHONEOS__ + // Use the built-in resources directory (read-only) + asset_manager->addCache(new AssetCache("data")); + // prefer the sandbox's Documents folder + asset_manager->addCache(new AssetCache("../Documents")); #else asset_manager->addCache(new AssetCache("data")); #endif