Commit 845cbc89 authored by twanvl's avatar twanvl

Make windows 9x (ascii) build nag when run on other windows versions.

The idea is to prevent people from using the win9x fix when there are built issues with the Unicode version.
parent 56c02894
...@@ -65,6 +65,21 @@ void write_stdout(const String& str) { ...@@ -65,6 +65,21 @@ void write_stdout(const String& str) {
} }
} }
// ----------------------------------------------------------------------------- : Checks
void nag_about_ascii_version() {
#if !defined(UNICODE) && defined(__WXMSW__)
// windows 2000/XP/Vista/... users shouldn't use the 9x version
OSVERSIONINFO info;
info.dwOSVersionInfoSize = sizeof(info);
GetVersionEx(&info);
if (info.dwMajorVersion >= 5) {
handle_warning(_("This build of Magic Set Editor is intended for Windows 95/98/ME systems.\n")
_("It is recommended that you download the appropriate MSE version for your Windows version."));
}
#endif
}
// ----------------------------------------------------------------------------- : Initialization // ----------------------------------------------------------------------------- : Initialization
int MSE::OnRun() { int MSE::OnRun() {
...@@ -83,6 +98,7 @@ int MSE::OnRun() { ...@@ -83,6 +98,7 @@ int MSE::OnRun() {
settings.read(); settings.read();
the_locale = Locale::byName(settings.locale); the_locale = Locale::byName(settings.locale);
check_updates(); check_updates();
nag_about_ascii_version();
// interpret command line // interpret command line
if (argc > 1) { if (argc > 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment