From d9ea784a9091cf7afe34356bf63c22f64a9e5d29 Mon Sep 17 00:00:00 2001 From: wootguy Date: Wed, 5 Sep 2018 17:57:17 -0700 Subject: [PATCH] Fix false positives for default content There isn't a good reason to have default content checks be case sensitive. That just means behavior will be inconsistent between systems (e.g. Windows player sees a different models). --- src/util.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 1a05e19..30e6338 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -929,14 +929,7 @@ bool is_unique(set_icase& list, string val) bool is_default_file(string file) { - auto defaultFile = default_content.find(file); - if (defaultFile != default_content.end()) - { - if (case_sensitive_mode) - return std::equal((*defaultFile).rbegin(), (*defaultFile).rend(), file.rbegin()); - return true; - } - return false; + return default_content.find(file) != default_content.end(); } string toLowerCase(string str)