summaryrefslogtreecommitdiff
path: root/unix.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-12 22:03:14 +0000
committerdarkvater <darkvater@openttd.org>2004-09-12 22:03:14 +0000
commit989ed101bc9ff659736354f42ac22dfd23809e92 (patch)
tree059fa9da5c30ef18e3f8d338d639a6d1f3d67e0d /unix.c
parente295e46e3eccd58626ce2b02aab24b96c025636b (diff)
downloadopenttd-989ed101bc9ff659736354f42ac22dfd23809e92.tar.xz
(svn r224) -Fix: Music now finally works on WinXP. DirectMusic is now default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc).
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index 932a4a56c..06aa7b9da 100644
--- a/unix.c
+++ b/unix.c
@@ -353,6 +353,13 @@ const DriverDesc _music_driver_descs[] = {
{ NULL, NULL, NULL, 0}
};
+/* GetOSVersion returns the minimal required version of OS to be able to use that driver.
+ Not needed for *nix. */
+byte GetOSVersion()
+{
+ return 1; // any arbitrary number bigger then 0
+}
+
bool FileExists(const char *filename)
{
return access(filename, 0) == 0;