Core/Misc: Add support for custom link colors. Clean-up hyperlink validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs.

(cherry picked from commit eaf8fa75a1)
This commit is contained in:
Treeston
2020-09-02 22:01:51 +02:00
committed by Shauren
parent f7c65960a5
commit 0d54a5ecb4
3 changed files with 34 additions and 20 deletions

View File

@@ -842,7 +842,7 @@ bool StringEqualI(std::string_view str1, std::string_view str2)
bool StringStartsWith(std::string_view haystack, std::string_view needle)
{
return (haystack.rfind(needle, 0) == 0);
return (haystack.substr(0, needle.length()) == needle);
}
bool StringContainsStringI(std::string_view haystack, std::string_view needle)