From c61880c457727df38859d1aa960ff39066213b2e Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Tue, 5 Nov 2019 00:09:59 -0600 Subject: [PATCH] Search relative path first before install path (#2328) --- lib/library.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/library.cpp b/lib/library.cpp index 0f2e0b37c..eaa5537cc 100644 --- a/lib/library.cpp +++ b/lib/library.cpp @@ -105,8 +105,8 @@ Library::Error Library::load(const char exename[], const char path[]) } while (error == tinyxml2::XML_ERROR_FILE_NOT_FOUND && !cfgfolders.empty()) { - const std::string cfgfolder(cfgfolders.front()); - cfgfolders.pop_front(); + const std::string cfgfolder(cfgfolders.back()); + cfgfolders.pop_back(); const char *sep = (!cfgfolder.empty() && endsWith(cfgfolder,'/') ? "" : "/"); const std::string filename(cfgfolder + sep + fullfilename); error = doc.LoadFile(filename.c_str());