Saturday, 14 January 2023

set game base executable automatically

-(const char *)getFrameworkName { if(frameworkName) return frameworkName; NSFileManager *fileManager = [NSFileManager defaultManager]; NSString *bundlePath = [[NSBundle mainBundle] bundlePath]; NSString *path = [bundlePath stringByAppendingString:@"/Frameworks/UnityFramework.framework/UnityFramework"]; if([fileManager fileExistsAtPath:path]) { frameworkName = "UnityFramework"; } else { frameworkName = NULL; } return frameworkName; }

from iOSGods RSS Feed https://ift.tt/Lqyib8a

No comments:

Post a Comment