summaryrefslogtreecommitdiffhomepage
path: root/StarsEx
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-09 13:28:09 +0100
committerAki <please@ignore.pl>2024-03-09 13:28:09 +0100
commiteced12a69603e23d6869f92a2d5302f4605354ba (patch)
treee34594331cf2aabd89de592daa7e3125e82b161a /StarsEx
parentc0d0a2afb51a58e2a741899c482e25e0afacad7e (diff)
downloadstarshatter-eced12a69603e23d6869f92a2d5302f4605354ba.zip
starshatter-eced12a69603e23d6869f92a2d5302f4605354ba.tar.gz
starshatter-eced12a69603e23d6869f92a2d5302f4605354ba.tar.bz2
You may now try to run game on WIN95 and 98 if you can
Diffstat (limited to 'StarsEx')
-rw-r--r--StarsEx/GameWinDX9.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/StarsEx/GameWinDX9.cpp b/StarsEx/GameWinDX9.cpp
index 78bdefe..bbf61c3 100644
--- a/StarsEx/GameWinDX9.cpp
+++ b/StarsEx/GameWinDX9.cpp
@@ -88,19 +88,9 @@ GameWinDX9::Init(HINSTANCE hi, HINSTANCE hpi, LPSTR cmdline, int nCmdShow)
status = INIT_FAILED;
}
- if (status == OK) {
- static int os_version = MachineInfo::GetPlatform();
-
- if (os_version == MachineInfo::OS_WIN95 || os_version == MachineInfo::OS_WIN98) {
- Panic::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::Panic(" D3D not available under WinNT 4");
- status = INIT_FAILED;
- } else if (MachineInfo::GetDirectXVersion() < MachineInfo::DX_9) {
- Panic::Panic(" Insufficient DirectX detected (Dx9 IS REQUIRED)");
- status = INIT_FAILED;
- }
+ if (status == OK && MachineInfo::GetDirectXVersion() < MachineInfo::DX_9) {
+ Panic::Panic(" Insufficient DirectX detected (Dx9 IS REQUIRED)");
+ status = INIT_FAILED;
}
if (status == OK) {