src/win32.cpp
branchgamebalance
changeset 9911 0b8b245a2391
parent 9910 0b2aebc8283e
child 9912 1ac8aac92385
equal deleted inserted replaced
9910:0b2aebc8283e 9911:0b8b245a2391
   888 #if !defined(UNICODE)
   888 #if !defined(UNICODE)
   889 	_codepage = GetACP(); // get system codepage as some kind of a default
   889 	_codepage = GetACP(); // get system codepage as some kind of a default
   890 #endif /* UNICODE */
   890 #endif /* UNICODE */
   891 
   891 
   892 #if defined(UNICODE)
   892 #if defined(UNICODE)
       
   893 	/* Check if a win9x user started the win32 version */
       
   894 	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.");
       
   895 
   893 	/* For UNICODE we need to convert the commandline to char* _AND_
   896 	/* For UNICODE we need to convert the commandline to char* _AND_
   894 	 * save it because argv[] points into this buffer and thus needs to
   897 	 * save it because argv[] points into this buffer and thus needs to
   895 	 * be available between subsequent calls to FS2OTTD() */
   898 	 * be available between subsequent calls to FS2OTTD() */
   896 	char cmdlinebuf[MAX_PATH];
   899 	char cmdlinebuf[MAX_PATH];
   897 #endif /* UNICODE */
   900 #endif /* UNICODE */