From ec2f36ad4fb8f60b07e179a2db0a13f6343c28b5 Mon Sep 17 00:00:00 2001 From: Ion Agorria Date: Sat, 13 Apr 2024 01:21:54 +0200 Subject: [PATCH] mods: Fix texts not loading in windows --- Source/Game/qd_textdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/qd_textdb.cpp b/Source/Game/qd_textdb.cpp index 55442928b..5c4aa0da5 100644 --- a/Source/Game/qd_textdb.cpp +++ b/Source/Game/qd_textdb.cpp @@ -340,7 +340,7 @@ void qdTextDB::load_from_directory(const std::string& locale, const std::string& for (const auto& entry: get_content_entries_directory(path)) { //Only load files from non mod folders if exclude_mods is true, otherwise only load from mods //This ensures every file is parsed only once, that mod can override base content if required and - if (startsWith(entry->key_content, "mods/") == exclude_mods) { + if (startsWith(entry->key_content, ("mods" PATH_SEP_STR)) == exclude_mods) { continue; } std::filesystem::path entry_path = std::filesystem::u8path(entry->key);