(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).

This commit is contained in:
darkvater
2004-09-12 22:03:14 +00:00
parent e295e46e3e
commit 989ed101bc
8 changed files with 61 additions and 19 deletions

7
unix.c
View File

@@ -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;