File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments