File diff r2209:e40a090476da → r2210:ed1be54700ae
os2.c
Show inline comments
 
@@ -2,6 +2,7 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "hal.h"
 
#include "variables.h"
 
#include "string.h"
 
#include "table/strings.h"
 
@@ -28,16 +29,6 @@
 

	
 
#include <i86.h>
 

	
 
#include "sound/null_s.h"
 
#include "sound/sdl_s.h"
 

	
 
#include "video/dedicated_v.h"
 
#include "video/null_v.h"
 
#include "video/sdl_v.h"
 

	
 
#include "music/null_m.h"
 
#include "music/os2_m.h"
 

	
 
static inline int strcasecmp(const char* s1, const char* s2)
 
{
 
	return stricmp(s1, s2);
 
@@ -432,38 +423,6 @@ void FiosDelete(const char *name)
 
	unlink(path);
 
}
 

	
 
const DriverDesc _video_driver_descs[] = {
 
	{	"null",			"Null Video Driver",		&_null_video_driver,		0},
 
#if defined(WITH_SDL)
 
	{	"sdl",			"SDL Video Driver",			&_sdl_video_driver,			1},
 
#endif
 
#ifdef ENABLE_NETWORK
 
	{	"dedicated",	"Dedicated Video Driver",	&_dedicated_video_driver,	0},
 
#endif
 
	{	NULL,			NULL,						NULL,						0}
 
};
 

	
 
const DriverDesc _sound_driver_descs[] = {
 
	{	"null",	"Null Sound Driver",	&_null_sound_driver,		0},
 
#if defined(WITH_SDL)
 
	{	"sdl",	"SDL Sound Driver",		&_sdl_sound_driver,			1},
 
#endif
 
	{	NULL,	NULL,					NULL,						0}
 
};
 

	
 
const DriverDesc _music_driver_descs[] = {
 
	{	"os2",		"OS/2 Music Driver",		&_os2_music_driver,			0},
 
	{   "null",     "Null Music Driver",	    &_null_music_driver,	    1},
 
	{	NULL,		NULL,						NULL,						0}
 
};
 

	
 
/* GetOSVersion returns the minimal required version of OS to be able to use that driver.
 
	 Not needed for OS/2. */
 
byte GetOSVersion(void)
 
{
 
	return 2;  // any arbitrary number bigger then 0
 
}
 

	
 
bool FileExists(const char *filename)
 
{
 
	return access(filename, 0) == 0;