21 #include "../../SDL_internal.h"
23 #ifdef SDL_FILESYSTEM_COCOA
28 #include <Foundation/Foundation.h>
30 #include <sys/types.h>
40 NSBundle *bundle = [NSBundle mainBundle];
41 const char* baseType = [[[bundle infoDictionary] objectForKey:@"SDL_FILESYSTEM_BASE_DIR_TYPE"] UTF8String];
45 if (baseType ==
NULL) {
46 baseType =
"resource";
49 base = [[bundle bundlePath] fileSystemRepresentation];
51 base = [[[bundle bundlePath] stringByDeletingLastPathComponent] fileSystemRepresentation];
54 base = [[bundle resourcePath] fileSystemRepresentation];
84 NSArray *
array = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
102 NSArray *
array = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
106 NSString *str = [array objectAtIndex:0];
107 const char *
base = [str fileSystemRepresentation];
#define SDL_OutOfMemory()
#define SDL_InvalidParamError(param)
Include file for filesystem SDL API functions.
char * SDL_GetBasePath(void)
Get the path where the application resides.
@ SDL_LOG_CATEGORY_SYSTEM
GLuint GLuint GLsizei count
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst base
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF ptr