diff options
Diffstat (limited to 'aocharmovie.cpp')
| -rw-r--r-- | aocharmovie.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/aocharmovie.cpp b/aocharmovie.cpp index 7198523..40953e5 100644 --- a/aocharmovie.cpp +++ b/aocharmovie.cpp @@ -25,12 +25,15 @@ AOCharMovie::AOCharMovie(QWidget *p_parent, AOApplication *p_ao_app) : QLabel(p_ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix) { QString original_path = ao_app->get_character_path(p_char) + emote_prefix + p_emote.toLower() + ".gif"; + QString alt_path = ao_app->get_character_path(p_char) + p_emote.toLower() + ".png"; QString placeholder_path = ao_app->get_theme_path() + "placeholder.gif"; QString placeholder_default_path = ao_app->get_default_theme_path() + "placeholder.gif"; QString gif_path; if (file_exists(original_path)) gif_path = original_path; + else if (file_exists(alt_path)) + gif_path = alt_path; else if (file_exists(placeholder_path)) gif_path = placeholder_path; else |
