mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- moved the command line parser out of the game frontends.
Some part are not done yet, and the file system data is currently ignored - there's no way to properly set this up with the file system code Build came with.
This commit is contained in:
parent
5148fc877d
commit
762f174743
49 changed files with 337 additions and 1529 deletions
|
@ -408,7 +408,7 @@ extern short Level;
|
|||
SWBOOL
|
||||
PlaySong(char *song_file_name, int cdaudio_track, SWBOOL loop, SWBOOL restart)
|
||||
{
|
||||
if (!mus_enabled)
|
||||
if (!MusicEnabled())
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -551,7 +551,7 @@ StopSong(void)
|
|||
void
|
||||
PauseSong(SWBOOL pauseon)
|
||||
{
|
||||
if (!mus_enabled) return;
|
||||
if (!MusicEnabled()) return;
|
||||
|
||||
if (SongType == SongTypeWave && SongVoice >= 0)
|
||||
{
|
||||
|
@ -816,7 +816,7 @@ PlaySound(int num, int *x, int *y, int *z, Voc3D_Flags flags)
|
|||
if (Prediction)
|
||||
return -1;
|
||||
|
||||
if (!snd_enabled)
|
||||
if (!SoundEnabled())
|
||||
return -1;
|
||||
|
||||
PRODUCTION_ASSERT(num >= 0 && num < DIGI_MAX);
|
||||
|
@ -1045,7 +1045,7 @@ void PlaySoundRTS(int rts_num)
|
|||
char *rtsptr;
|
||||
int voice=-1;
|
||||
|
||||
if (!RTS_IsInitialized() || !snd_enabled)
|
||||
if (!RTS_IsInitialized() || !SoundEnabled())
|
||||
return;
|
||||
|
||||
rtsptr = (char *)RTS_GetSound(rts_num - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue