src/filesystem/cocoa/SDL_sysfilesystem.m
changeset 7866 42da269b7977
parent 7771 4434498bf4b9
child 7883 62f562a475e1
     1.1 --- a/src/filesystem/cocoa/SDL_sysfilesystem.m	Mon Oct 21 00:15:24 2013 -0700
     1.2 +++ b/src/filesystem/cocoa/SDL_sysfilesystem.m	Mon Oct 21 00:20:27 2013 -0700
     1.3 @@ -45,12 +45,12 @@
     1.4          baseType = "resource";
     1.5      }
     1.6      if (SDL_strcasecmp(baseType, "bundle")==0) {
     1.7 -        base = [[bundle bundlePath] UTF8String];
     1.8 +        base = [[bundle bundlePath] fileSystemRepresentation];
     1.9      } else if (SDL_strcasecmp(baseType, "parent")==0) {
    1.10 -        base = [[[bundle bundlePath] stringByDeletingLastPathComponent] UTF8String];
    1.11 +        base = [[[bundle bundlePath] stringByDeletingLastPathComponent] fileSystemRepresentation];
    1.12      } else {
    1.13          /* this returns the exedir for non-bundled  and the resourceDir for bundled apps */
    1.14 -        base = [[bundle resourcePath] UTF8String];
    1.15 +        base = [[bundle resourcePath] fileSystemRepresentation];
    1.16      }
    1.17      if (base) {
    1.18          const size_t len = SDL_strlen(base) + 2;
    1.19 @@ -77,7 +77,7 @@
    1.20  
    1.21      if ([array count] > 0) {  /* we only want the first item in the list. */
    1.22          NSString *str = [array objectAtIndex:0];
    1.23 -        const char *base = [str UTF8String];
    1.24 +        const char *base = [str fileSystemRepresentation];
    1.25          if (base) {
    1.26              const size_t len = SDL_strlen(base) + SDL_strlen(app) + 3;
    1.27              retval = (char *) SDL_malloc(len);