0

Working on a game atm using Ruby, but due to the nature of how the game is coded Windows XP is proving to be a issue, as various tweaks can be done to make you faster than other players so my intentions are to upon loading of the game detect if you are running windows XP, and if so fail to load any further.

This may seem harsh, but the advantages XP gives over Vista or Win7 etc is vast and is unbalanced.

Can any one help?

A.D.
  • 4,487
  • 3
  • 38
  • 50
Phil G
  • 13
  • 1

1 Answers1

1

Here you find some solutions on how to detect the operating system:

How can I find which operating system my Ruby program is running on?

But I think, it only tells you, if it is Windows or not. So you have to do a second step:

If it is Windows, you could call the system command ver to detect the Windows Version (As you might know, system commands can be called using the `-Symbol).

`ver`

More information about this command are found here: http://www.windows-commandline.com/2009/01/find-windows-os-version-from-command.html

Community
  • 1
  • 1
Marcel Hebing
  • 3,072
  • 1
  • 19
  • 22