forked from mirror/OpenTTD
(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:
7
unix.c
7
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;
|
||||
|
Reference in New Issue
Block a user