aboutsummaryrefslogtreecommitdiff
path: root/text_file_functions.cpp
diff options
context:
space:
mode:
authoriamgoofball <iamgoofball@gmail.com>2018-10-17 15:16:47 -0700
committeriamgoofball <iamgoofball@gmail.com>2018-10-17 15:16:47 -0700
commit462ece38c7bfb57305b77ec34561aa914b5bdc92 (patch)
treefe6856f601de592656cf03204f111ee6da04ff7f /text_file_functions.cpp
parent5325083b6f564cf8521ff2602fbbf653849b17ce (diff)
fixes
Diffstat (limited to 'text_file_functions.cpp')
-rw-r--r--text_file_functions.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/text_file_functions.cpp b/text_file_functions.cpp
index a6ad4f76..c37857c4 100644
--- a/text_file_functions.cpp
+++ b/text_file_functions.cpp
@@ -342,7 +342,6 @@ QString AOApplication::get_sfx(QString p_identifier)
QString AOApplication::get_sfx_suffix(QString sound_to_check)
{
- QString wav_check = get_sounds_path() + sound_to_check + ".wav";
QString mp3_check = get_sounds_path() + sound_to_check + ".mp3";
QString opus_check = get_sounds_path() + sound_to_check + ".opus";
if(file_exists(opus_check))
@@ -353,25 +352,16 @@ QString AOApplication::get_sfx_suffix(QString sound_to_check)
{
return sound_to_check + ".mp3";
}
- if(file_exists(wav_check))
- {
- return sound_to_check + ".wav";
- }
return sound_to_check + ".wav";
}
QString AOApplication::get_image_suffix(QString path_to_check)
{
QString apng_check = path_to_check + ".apng";
- QString gif_check = path_to_check + ".gif";
if(file_exists(apng_check))
{
return path_to_check + ".apng";
}
- if(file_exists(gif_check))
- {
- return path_to_check + ".gif";
- }
return path_to_check + ".gif";
}