Merge pull request #607 from AttorneyOnline/cache-fix-2

Fix non-image files being loaded as images, fix custom shout button appearing on characters without it enabled
This commit is contained in:
oldmud0 2021-11-17 21:08:44 -06:00 committed by GitHub
commit b8572f8afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,9 @@ bool file_exists(QString file_path)
bool dir_exists(QString dir_path)
{
if (dir_path == "")
return false;
QDir check_dir(dir_path);
return check_dir.exists();

View File

@ -517,7 +517,7 @@ QString AOApplication::get_sfx_suffix(VPath sound_to_check)
QString AOApplication::get_image_suffix(VPath path_to_check, bool static_image)
{
QStringList suffixes { "" };
QStringList suffixes {};
if (!static_image) {
suffixes.append({ ".webp", ".apng", ".gif" });
}