aboutsummaryrefslogtreecommitdiff
path: root/include/aoapplication.h
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2022-07-26 00:54:11 +0300
committerGitHub <noreply@github.com>2022-07-26 00:54:11 +0300
commitf8c2b1a2f06d2c2f99fa9eaa7b2334524823aac5 (patch)
tree2c1895467a4c9eb681c99ac82d187b15c67f8567 /include/aoapplication.h
parent0dac3cc2c017e8c785cb00c340ea37e050eb6366 (diff)
Part 2 of #713: merge get_real_suffixed_path into get_real_path (#717)
* Fix get_real_suffixed_path existing, causing the previous PR to not function on suffixed... anything Fix suffixes ignoring a case where a suffixed path is already provided, causing that pre-suffixed filepath to fail to find anything * Fix image paths being used as sound effects and vice versa Better check for sfx and image absolute paths which double-checks the absolute path we got is *actually a valid file format* Co-authored-by: stonedDiscord <Tukz@gmx.de> Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com>
Diffstat (limited to 'include/aoapplication.h')
-rw-r--r--include/aoapplication.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index c3b7550f..d9b9e89f 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -166,8 +166,7 @@ public:
QString get_sfx(QString p_sfx, QString p_misc="", QString p_character="");
QString get_pos_path(const QString& pos, bool desk = false);
QString get_case_sensitive_path(QString p_file);
- QString get_real_path(const VPath &vpath);
- QString get_real_suffixed_path(const VPath &vpath, const QStringList &suffixes);
+ QString get_real_path(const VPath &vpath, const QStringList &suffixes={""});
void invalidate_lookup_cache();
////// Functions for reading and writing files //////