From f739aedf5b25be8b4cf2ac670b4ef7f42490696c Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 14 May 2007 14:06:46 +0000 Subject: (svn r9834) -Add: win9x check in win32 builds --- src/win32.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/win32.cpp') 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() */ -- cgit v1.2.3-70-g09d2