summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-05-14 14:06:46 +0000
committerglx <glx@openttd.org>2007-05-14 14:06:46 +0000
commit62fe9c2e420238ba4db54f8cf56afc25b1167051 (patch)
tree866d52b781547e844953df248509bcf2c9b2d8ad /src
parent42f920964b25d3ac49b24ee4c448dc4c8a6a20c9 (diff)
downloadopenttd-62fe9c2e420238ba4db54f8cf56afc25b1167051.tar.xz
(svn r9834) -Add: win9x check in win32 builds
Diffstat (limited to 'src')
-rw-r--r--src/win32.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/win32.cpp b/src/win32.cpp
index 41f8cff58..4d99536d1 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -890,6 +890,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
#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() */