SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
29
games/oolite/patches/patch-src_SDL_MyOpenGLView_m
Normal file
29
games/oolite/patches/patch-src_SDL_MyOpenGLView_m
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- src/SDL/MyOpenGLView.m.orig Wed Mar 31 00:27:49 2010
|
||||
+++ src/SDL/MyOpenGLView.m Wed Mar 31 00:28:33 2010
|
||||
@@ -128,7 +128,7 @@ MA 02110-1301, USA.
|
||||
|
||||
// Generate the window caption, containing the version number and the date the executable was compiled.
|
||||
static char windowCaption[128];
|
||||
- NSString *versionString = [NSString stringWithFormat:@"Oolite v%@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]];
|
||||
+ NSString *versionString = [NSString stringWithFormat:@"Oolite v%@", [[[NSBundle bundleWithPath: BUNDLE_PATH] infoDictionary] objectForKey:@"CFBundleVersion"]];
|
||||
|
||||
strcpy (windowCaption, [versionString UTF8String]);
|
||||
strcat (windowCaption, " - "__DATE__);
|
||||
@@ -144,7 +144,7 @@ MA 02110-1301, USA.
|
||||
|
||||
#endif
|
||||
|
||||
- imagesDir = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Images"];
|
||||
+ imagesDir = [[[NSBundle bundleWithPath: BUNDLE_PATH] resourcePath] stringByAppendingPathComponent:@"Images"];
|
||||
icon = SDL_LoadBMP([[imagesDir stringByAppendingPathComponent:@"WMicon.bmp"] cString]);
|
||||
|
||||
if (icon != NULL)
|
||||
@@ -487,7 +487,7 @@ MA 02110-1301, USA.
|
||||
#if OOLITE_WINDOWS
|
||||
NSString *imagesDir = @"Resources/Images";
|
||||
#else
|
||||
- NSString *imagesDir = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Images"];
|
||||
+ NSString *imagesDir = [[[NSBundle bundleWithPath: BUNDLE_PATH] resourcePath] stringByAppendingPathComponent:@"Images"];
|
||||
#endif
|
||||
|
||||
image = SDL_LoadBMP([[imagesDir stringByAppendingPathComponent:@"splash.bmp"] cString]);
|
Loading…
Add table
Add a link
Reference in a new issue