summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 17:00:27 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 17:00:27 +0000
commitfd51dc1bbbcba496fa0d57963a5727a36e381118 (patch)
treeccf07fe7ce25a9b42c9610e16a515d67baa458cc
parentd12497abebff7f8446441f3785b5822488180f50 (diff)
downloadstarshatter-fd51dc1bbbcba496fa0d57963a5727a36e381118.zip
starshatter-fd51dc1bbbcba496fa0d57963a5727a36e381118.tar.gz
starshatter-fd51dc1bbbcba496fa0d57963a5727a36e381118.tar.bz2
Remove support for Win95/98
-rw-r--r--nGenEx/Game.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/nGenEx/Game.cpp b/nGenEx/Game.cpp
index b9d1f25..a7c6563 100644
--- a/nGenEx/Game.cpp
+++ b/nGenEx/Game.cpp
@@ -257,17 +257,20 @@ Game::Init(HINSTANCE hi, HINSTANCE hpi, LPSTR cmdline, int nCmdShow)
}
if (status == OK) {
- if (MachineInfo::GetPlatform() == MachineInfo::OS_WINNT) {
- Panic(" D3D not available under WinNT 4");
- status = INIT_FAILED;
- }
-
- else if (MachineInfo::GetDirectXVersion() < MachineInfo::DX_9) {
- Panic(" Insufficient DirectX detected (Dx9 IS REQUIRED)");
- status = INIT_FAILED;
- }
-
- Print(" Gamma Level = %d\n", gamma);
+ static int os_version = MachineInfo::GetPlatform();
+
+ if (os_version == MachineInfo::OS_WIN95 || os_version == MachineInfo::OS_WIN98) {
+ Panic(" Windows 95 and 98 are no longer supported. Please update to Windows XP or higher.");
+ status = INIT_FAILED;
+ } else if (os_version == MachineInfo::OS_WINNT) {
+ Panic(" D3D not available under WinNT 4");
+ status = INIT_FAILED;
+ } else if (MachineInfo::GetDirectXVersion() < MachineInfo::DX_9) {
+ Panic(" Insufficient DirectX detected (Dx9 IS REQUIRED)");
+ status = INIT_FAILED;
+ }
+
+ Print(" Gamma Level = %d\n", gamma);
}
if (status == OK) {