mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
07a6e612ec
This results in shorter and hopefully easier to maintain files. Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)
20 lines
528 B
C
20 lines
528 B
C
#include "stdafx.h"
|
|
#include "openttd.h"
|
|
#include "music/null.h"
|
|
|
|
static const char* NullMidiStart(const char* const* parm) { return NULL; }
|
|
static void NullMidiStop(void) {}
|
|
static void NullMidiPlaySong(const char *filename) {}
|
|
static void NullMidiStopSong(void) {}
|
|
static bool NullMidiIsSongPlaying(void) { return true; }
|
|
static void NullMidiSetVolume(byte vol) {}
|
|
|
|
const HalMusicDriver _null_music_driver = {
|
|
NullMidiStart,
|
|
NullMidiStop,
|
|
NullMidiPlaySong,
|
|
NullMidiStopSong,
|
|
NullMidiIsSongPlaying,
|
|
NullMidiSetVolume,
|
|
};
|