Move jukebox_load, jukebox_hook_next to dcx

This commit is contained in:
Kp 2020-05-31 23:04:25 +00:00
parent 81119f0445
commit 5c30b467bb
2 changed files with 5 additions and 5 deletions

View file

@ -16,9 +16,9 @@ namespace dcx {
extern const std::array<file_extension_t, 5> jukebox_exts;
void jukebox_unload();
void jukebox_load();
}
namespace dsx {
void jukebox_load();
int jukebox_play();
}
#endif

View file

@ -227,10 +227,6 @@ static int read_m3u(void)
return 1;
}
}
namespace dsx {
/* Loads music file names from a given directory or M3U playlist */
void jukebox_load()
{
@ -317,6 +313,10 @@ static void jukebox_hook_next()
jukebox_play();
}
}
namespace dsx {
// Play tracks from Jukebox directory. Play track specified in GameCfg.CMLevelMusicTrack[0] and loop depending on CGameCfg.CMLevelMusicPlayOrder
int jukebox_play()
{