2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

Update submodules, fix Linux build

This commit is contained in:
2018-02-27 17:46:14 -08:00
parent c15c5f47ed
commit 0c95ee6665
3 changed files with 10 additions and 3 deletions

View File

@@ -50,7 +50,11 @@ CScriptStreamedMusic::CScriptStreamedMusic(TUniqueId id, const CEntityInfo& info
float fadeIn, float fadeOut, u32 volume, bool loop, bool music)
: CEntity(id, info, active, name), x34_fileName(fileName), x44_noStopOnDeactivate(noStopOnDeactivate),
x45_fileIsDsp(IsDSPFile(fileName)), x46_loop(loop), x47_music(music),
x48_fadeIn(fadeIn), x4c_fadeOut(fadeOut), x50_volume(volume) {}
x48_fadeIn(fadeIn), x4c_fadeOut(fadeOut), x50_volume(volume)
{
while (x34_fileName.find("/audio") != std::string::npos)
x34_fileName.replace(x34_fileName.find("/audio"), std::strlen("/audio"), "/Audio");
}
void CScriptStreamedMusic::Stop(CStateManager& mgr)
{