update macros for iOS file path impl

This commit is contained in:
scawful
2024-08-02 15:35:38 -04:00
parent a0fb222fa1
commit c1af4fbb4d

View File

@@ -5,9 +5,7 @@
#include <Foundation/Foundation.h>
#include <TargetConditionals.h>
#if TARGET_IPHONE_SIMULATOR == 1
std::string GetBundleResourcePath() {}
#elif TARGET_OS_IPHONE == 1
#if TARGET_IPHONE_SIMULATOR == 1 || TARGET_OS_IPHONE == 1
std::string GetBundleResourcePath() {
NSBundle* bundle = [NSBundle mainBundle];
NSString* resourceDirectoryPath = [bundle bundlePath];