From eced12a69603e23d6869f92a2d5302f4605354ba Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 9 Mar 2024 13:28:09 +0100 Subject: You may now try to run game on WIN95 and 98 if you can --- StarsEx/GameWinDX9.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'StarsEx') 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) { -- cgit v1.1