mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 22:19:07 +00:00
More linux file name case issues...
This commit is contained in:
parent
8f2279e28a
commit
647832ed5b
1 changed files with 4 additions and 8 deletions
|
@ -925,15 +925,13 @@ bool SoundManager::playVoice(const std::string &name, SoundVoiceType svt, float
|
|||
|
||||
if (!voicePath2.empty())
|
||||
{
|
||||
fn = voicePath2 + name + fileType;
|
||||
stringToLower(fn);
|
||||
fn = core->adjustFilenameCase(voicePath2 + name + fileType);
|
||||
if (exists(fn)) checkOther = false;
|
||||
}
|
||||
|
||||
if (checkOther)
|
||||
{
|
||||
fn = voicePath + name + fileType;
|
||||
stringToLower(fn);
|
||||
fn = core->adjustFilenameCase(voicePath + name + fileType);
|
||||
if (!exists(fn))
|
||||
{
|
||||
debugLog("Could not find voice file [" + fn + "]");
|
||||
|
@ -1281,27 +1279,25 @@ bool SoundManager::playMusic(const std::string &name, SoundLoopType slt, SoundFa
|
|||
if (!name.empty() && name[0] == '.')
|
||||
{
|
||||
fn = name;
|
||||
stringToLower(fn);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!audioPath2.empty())
|
||||
{
|
||||
fn = audioPath2 + name + fileType;
|
||||
stringToLower(fn);
|
||||
if (!exists(fn))
|
||||
{
|
||||
fn = musicPath + name + fileType;
|
||||
stringToLower(fn);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fn = musicPath + name + fileType;
|
||||
stringToLower(fn);
|
||||
}
|
||||
}
|
||||
|
||||
fn = core->adjustFilenameCase(fn);
|
||||
|
||||
lastMusic = name;
|
||||
stringToLower(lastMusic);
|
||||
|
||||
|
|
Loading…
Reference in a new issue