diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-01-17 18:41:27 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-01-17 18:41:27 +0300 |
| commit | 43c4e3e9d703a0b7d48b634d6970906dcb5709b2 (patch) | |
| tree | 025ee8a5335ab7efe525264b9989bef3192abc3d /src/text_file_functions.cpp | |
| parent | 6138bb107b5ab4d882e9ceb75e1394c2b8ec82a3 (diff) | |
Network effects folder so you don't need to modify your own char.ini to see custom effects
Diffstat (limited to 'src/text_file_functions.cpp')
| -rw-r--r-- | src/text_file_functions.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index bb5d7dea..49bf61f7 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -885,9 +885,12 @@ QStringList AOApplication::get_effects(QString p_char) return effects; } -QString AOApplication::get_effect(QString effect, QString p_char) +QString AOApplication::get_effect(QString effect, QString p_char, QString p_folder) { - QString p_effect = read_char_ini(p_char, "effects", "Options"); + QString p_effect = p_folder; + if (p_folder == "") + p_effect = read_char_ini(p_char, "effects", "Options"); + QString p_path = get_image_suffix(get_base_path() + "misc/" + p_effect + "/" + effect); QString design_ini_path = get_image_suffix(get_theme_path("effects/" + effect)); QString default_path = get_image_suffix(get_default_theme_path("effects/" + effect)); |
