aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2021-04-22 19:02:07 +0300
committerCrystalwarrior <varsash@gmail.com>2021-04-22 19:02:07 +0300
commitd2c0c4fa0dfdef2534fcc0826f8c36bc4568a631 (patch)
tree6795871c6b1f9e3133411b0abe3e88854083b561
parent3e4de5da62966b63dc553fd793cb6de3d2f48391 (diff)
Fix charlayer regression not allowing us to *directly* refer to an emote we want to use with a file path (base/misc/blank for example)
Actually use the helper funcs for searching images instead of reimplementing the same thing
-rw-r--r--src/aolayer.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index e4db75ad..ccf2d633 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -197,20 +197,20 @@ void CharLayer::load_image(QString p_filename, QString p_charname,
<< " continuous: " << continuous;
#endif
QStringList pathlist = {
- ao_app->get_image_suffix(ao_app->get_character_path(
- p_charname, prefix + current_emote)), // Default path
- ao_app->get_image_suffix(ao_app->get_character_path(
+ current_emote, // The path by itself
+ ao_app->get_character_path(
+ p_charname, prefix + current_emote), // Default path
+ ao_app->get_character_path(
p_charname,
- prefix + "/" + current_emote)), // Path check if it's categorized
+ prefix + "/" + current_emote), // Path check if it's categorized
// into a folder
- ao_app->get_image_suffix(ao_app->get_character_path(
+ ao_app->get_character_path(
p_charname,
- current_emote)), // Just use the non-prefixed image, animated or not
- ao_app->get_image_suffix(
- ao_app->get_theme_path("placeholder")), // Theme placeholder path
- ao_app->get_image_suffix(ao_app->get_theme_path(
- "placeholder", ao_app->default_theme))}; // Default theme placeholder path
- start_playback(find_image(pathlist));
+ current_emote), // Just use the non-prefixed image, animated or not
+ ao_app->get_theme_path("placeholder"), // Theme placeholder path
+ ao_app->get_theme_path(
+ "placeholder", ao_app->default_theme)}; // Default theme placeholder path
+ start_playback(ao_app->get_image_path(pathlist));
}
void SplashLayer::load_image(QString p_filename, QString p_charname,