(svn r2112) -Fix: ExtMidi no longer halts the game while starting a song

-Fix: Redirect stdin/stdout/stderr of the ExtMidi process to /dev/null, to prevent it from writing to the terminal
While here give the ExtMidi functions canonical names
This commit is contained in:
tron
2005-03-30 19:52:26 +00:00
parent 3e4553e55f
commit 3c38db7c2b
3 changed files with 72 additions and 64 deletions

4
ttd.c
View File

@@ -641,7 +641,6 @@ int ttd_main(int argc, char* argv[])
LoadDriver(SOUND_DRIVER, _ini_sounddriver);
LoadDriver(MUSIC_DRIVER, _ini_musicdriver);
LoadDriver(VIDEO_DRIVER, _ini_videodriver); // load video last, to prevent an empty window while sound and music loads
MusicLoop();
_savegame_sort_order = 1; // default sorting of savegames is by date, newest first
#ifdef ENABLE_NETWORK
@@ -1165,8 +1164,7 @@ void GameLoop(void)
InputLoop();
if (_game_mode != GM_MENU)
MusicLoop();
MusicLoop();
}
void BeforeSaveGame(void)