Skip to content

Commit f747df4

Browse files
Fix --skipUpdateMasterlist argument being ignored (#24)
1 parent 460a29d commit f747df4

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/lootthread.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,12 +734,17 @@ int LOOTWorker::run()
734734
std::locale::global(gen(m_Language + ".UTF-8"));
735735
}
736736

737-
if (true) {
738-
progress(Progress::CheckingMasterlistExistence);
739-
if (!fs::exists(masterlistPath())) {
740-
fs::create_directories(masterlistPath().parent_path());
737+
progress(Progress::CheckingMasterlistExistence);
738+
if (!fs::exists(masterlistPath())) {
739+
if (!m_UpdateMasterlist) {
740+
log(loot::LogLevel::error,
741+
"Masterlist not found at: " + masterlistPath().string());
742+
return FALSE;
741743
}
744+
fs::create_directories(masterlistPath().parent_path());
745+
}
742746

747+
if (m_UpdateMasterlist) {
743748
progress(Progress::UpdatingMasterlist);
744749
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
745750
std::wstring masterlistSource =

0 commit comments

Comments
 (0)