From 010772fc6a747c57dcf7bee0e269b460a8eded60 Mon Sep 17 00:00:00 2001 From: neil <neil@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sun, 16 May 2010 00:27:34 +0000 Subject: [PATCH] No dummy stuff need be added to the path it seems git-svn-id: http://svn.net-core.org/repos/t-engine4@616 51575b47-30f0-44d4-a5cc-537603b46e54 --- src/mac/getself.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mac/getself.m b/src/mac/getself.m index 16ac964489..33d065338a 100644 --- a/src/mac/getself.m +++ b/src/mac/getself.m @@ -6,10 +6,7 @@ const char *get_self_executable(int argc, char **argv) if(!cstr) { - NSString *resourcePath = [[NSBundle mainBundle] resourcePath]; - resourcePath = [NSString stringWithFormat:@"%@/", resourcePath]; - const char *utf8 = [resourcePath UTF8String]; - + const char *utf8 = [[[NSBundle mainBundle] resourcePath] UTF8String]; cstr = malloc(strlen(utf8) + 1); strcpy(cstr, utf8); } -- GitLab