Add -fm command line option

This commit is contained in:
kichikuou
2020-11-21 14:01:38 +09:00
parent 893f716ef3
commit 4b4053cf1e
12 changed files with 42 additions and 30 deletions
+3 -3
View File
@@ -35,15 +35,15 @@ void FMHook(void *udata, Uint8 *stream, int len) {
} // namespace
MAKO::MAKO(NACT* parent, const char* playlist) :
use_fm(true),
MAKO::MAKO(NACT* parent, const MAKOConfig& config) :
use_fm(config.use_fm),
current_music(0),
next_loop(0),
nact(parent)
{
int mix_init_flags = MIX_INIT_MID;
if (playlist && load_playlist(playlist))
if (config.playlist && load_playlist(config.playlist))
mix_init_flags |= MIX_INIT_MP3 | MIX_INIT_OGG;
strcpy_s(amus, 16, "AMUS.DAT");