(svn r2745) -Fix: [OSX] removed the assert window introduced in 2741 from strgen
authorbjarni
Fri, 29 Jul 2005 09:45:25 +0000
changeset 2225 e60b20805e4d
parent 2224 e210db34b7ec
child 2226 efc1f77d27fc
(svn r2745) -Fix: [OSX] removed the assert window introduced in 2741 from strgen
- it appeared to cause problems and strgen don't need a GUI
- renamed ottd to openttd in the app menu (Tobin)
os/macosx/plistgen.sh
stdafx.h
--- a/os/macosx/plistgen.sh	Fri Jul 29 06:20:28 2005 +0000
+++ b/os/macosx/plistgen.sh	Fri Jul 29 09:45:25 2005 +0000
@@ -31,7 +31,7 @@
         <key>CFBundleInfoDictionaryVersion</key>
         <string>6.0</string>
         <key>CFBundleName</key>
-        <string>ottd</string>
+        <string>OpenTTD</string>
         <key>CFBundlePackageType</key>
         <string>APPL</string>
         <key>CFBundleShortVersionString</key>
--- a/stdafx.h	Fri Jul 29 06:20:28 2005 +0000
+++ b/stdafx.h	Fri Jul 29 09:45:25 2005 +0000
@@ -24,7 +24,8 @@
 #include <stdlib.h>
 
 // MacOS X will use an NSAlert to display failed assertaions since they're lost unless running from a terminal
-#if !defined(__APPLE__)
+// strgen always runs from terminal and don't need a window for asserts
+#if !defined(__APPLE__) || defined(STRGEN)
 #include <assert.h>
 #else
 #include "os/macosx/macos.h"