* Added html5 dir, has a .bat file that can build the html5 version. I went ahead and added the html5 specific Dink media as well, a bit big for SVN though. It has mp3 versions of all songs, otherwise it's the same as the normal data I think

git-svn-id: svn://rtsoft.com/rtsvn/projects/RTDink@1600 353e56fe-9613-0410-8469-b96ad8e6f29c
This commit is contained in:
seth 2018-04-27 06:43:34 +00:00
parent 0974642cfb
commit 35c284b014
824 changed files with 4164 additions and 1121 deletions

View file

@ -5015,8 +5015,19 @@ bool PlayMidi(const char *sFileName)
bTryUsingOgg = false;
}
string tempName = ModifyFileExtension(fName, "ogg");
string tempName;
if (GetEmulatedPlatformID() == PLATFORM_ID_HTML5)
{
//ios browsers don't support ogg?! Fine, let's assume we have MP3 versions
tempName = ModifyFileExtension(fName, "mp3");
}
else
{
tempName = ModifyFileExtension(fName, "ogg");
}
if (bTryUsingOgg && !g_dglo.m_dmodGameDir.empty() && FileExists(g_dglo.m_dmodGamePathWithDir+tempName))
{
@ -6287,8 +6298,19 @@ if (1)
//first try with oggs
string temp = ModifyFileExtension(soundFilePathAndName, "ogg");
string temp;
if (GetEmulatedPlatformID() == PLATFORM_ID_HTML5)
{
temp = ModifyFileExtension(soundFilePathAndName, "mp3");
}
else
{
temp = ModifyFileExtension(soundFilePathAndName, "ogg");
}
temp = GetFileLocationString(temp);
if (FileExists(temp))