@@ -85,9 +85,9 @@ void LOOTWorker::setGamePath(const std::string& gamePath)
8585 m_GamePath = gamePath;
8686}
8787
88- void LOOTWorker::setOutput (const std::string& outputPath )
88+ void LOOTWorker::setReportOutputPath (const std::string& reportOutputPath )
8989{
90- m_OutputPath = outputPath ;
90+ m_ReportOutputPath = reportOutputPath ;
9191}
9292
9393void LOOTWorker::setUpdateMasterlist (bool update)
@@ -100,6 +100,12 @@ void LOOTWorker::setPluginListPath(const std::string& pluginListPath)
100100 m_PluginListPath = pluginListPath;
101101}
102102
103+ void LOOTWorker::setSortedPluginListOutputPath (
104+ const std::string& sortedPluginListOutputPath)
105+ {
106+ m_SortedPluginListOutputPath = sortedPluginListOutputPath;
107+ }
108+
103109void LOOTWorker::setLanguageCode (const std::string& languageCode)
104110{
105111 m_Language = languageCode;
@@ -818,10 +824,10 @@ int LOOTWorker::run()
818824
819825 progress (Progress::WritingLoadorder);
820826
821- std::ofstream outf (m_PluginListPath );
827+ std::ofstream outf (m_SortedPluginListOutputPath );
822828 if (!outf) {
823829 log (loot::LogLevel::error,
824- " failed to open " + m_PluginListPath + " to rewrite it" );
830+ " failed to open " + m_SortedPluginListOutputPath + " to rewrite it" );
825831 return 1 ;
826832 }
827833 outf << " # This file was automatically generated by Mod Organizer." << std::endl;
@@ -831,7 +837,7 @@ int LOOTWorker::run()
831837 outf.close ();
832838
833839 progress (Progress::ParsingLootMessages);
834- std::ofstream (m_OutputPath ) << createJsonReport (*gameHandle, sortedPlugins);
840+ std::ofstream (m_ReportOutputPath ) << createJsonReport (*gameHandle, sortedPlugins);
835841 } catch (std::system_error& e) {
836842 log (loot::LogLevel::error, e.what ());
837843 return 1 ;
0 commit comments