Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 866:86cd01c2b2d3
prev772:c0b5928dd600
next968:6fb1481859a4
author nkeynes
date Mon Oct 06 01:05:12 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Move bundle/system paths into paths.c, install lxdreamrc into the bundle
(Fix OSX bundle missing default configuration)
file annotate diff log raw
1.1 --- a/src/main.c Mon Jul 28 04:45:24 2008 +0000
1.2 +++ b/src/main.c Mon Oct 06 01:05:12 2008 +0000
1.3 @@ -35,9 +35,6 @@
1.4 #include "maple/maple.h"
1.5 #include "sh4/sh4.h"
1.6
1.7 -#ifdef APPLE_BUILD
1.8 -#include <AppKit/AppKit.h>
1.9 -#endif
1.10
1.11 char *option_list = "a:A:c:dhHl:m:npt:T:uvV:x?";
1.12 struct option longopts[] = {
1.13 @@ -98,19 +95,8 @@
1.14 void bind_gettext_domain()
1.15 {
1.16 #ifdef ENABLE_NLS
1.17 -#ifdef APPLE_BUILD
1.18 - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
1.19 - NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
1.20 - bindtextdomain( PACKAGE, [resourcePath UTF8String] );
1.21 -#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
1.22 - bind_textdomain_codeset( PACKAGE, "UTF-8" );
1.23 -#endif
1.24 - [pool release];
1.25 -#else
1.26 - bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
1.27 -#endif
1.28 + bindtextdomain( PACKAGE, get_locale_path() );
1.29 textdomain(PACKAGE);
1.30 -
1.31 #endif
1.32 }
1.33
.