(svn r9834) -Add: win9x check in win32 builds
authorglx
Mon, 14 May 2007 14:06:46 +0000
changeset 7110 1f9336148544
parent 7109 7d410365d6fc
child 7111 269c76b5b987
(svn r9834) -Add: win9x check in win32 builds
src/win32.cpp
--- a/src/win32.cpp	Mon May 14 08:07:20 2007 +0000
+++ b/src/win32.cpp	Mon May 14 14:06:46 2007 +0000
@@ -890,6 +890,9 @@
 #endif /* UNICODE */
 
 #if defined(UNICODE)
+	/* Check if a win9x user started the win32 version */
+	if (HASBIT(GetVersion(), 31)) error("This version of OpenTTD doesn't run on windows 95/98/ME.\nPlease download the win9x binary and try again.");
+
 	/* For UNICODE we need to convert the commandline to char* _AND_
 	 * save it because argv[] points into this buffer and thus needs to
 	 * be available between subsequent calls to FS2OTTD() */