summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorZachHaber <zhaber2@illinois.edu>2016-12-27 16:41:12 -0600
committerZachHaber <zhaber2@illinois.edu>2016-12-27 16:41:12 -0600
commita8556eacb629f605d318514bd95af844304f5a03 (patch)
tree49d0e30414ed00ac2a36c284c026b5785bbcc995 /src/mainwindow.cpp
parentf0810bfa43fa032ca2c4714e788177f537392b68 (diff)
Added preliminary support for changes to lootcli project
Hopefully re-enabled lootcli report. Added new argument for lootcli.exe: pluginListPath, so it can determine what to read and thus change. Need to figure out how to determine the current language in a format that's easily understood.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f554f0aa..13cf9846 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4229,6 +4229,9 @@ void MainWindow::on_bossButton_clicked()
std::string errorMessages;
m_OrganizerCore.currentProfile()->writeModlistNow();
+ //Create a backup of the load orders w/ LOOT in name
+ //to make sure that any sorting is easily undo-able.
+ //Need to figure out how I want to do that.
bool success = false;
@@ -4241,6 +4244,8 @@ void MainWindow::on_bossButton_clicked()
dialog.show();
QString outPath = QDir::temp().absoluteFilePath("lootreport.json");
+ //Trying to make it display the report.
+ reportURL=outPath.toStdString();
QStringList parameters;
parameters << "--unattended"
@@ -4248,13 +4253,14 @@ void MainWindow::on_bossButton_clicked()
<< "--noreport"
<< "--game" << m_OrganizerCore.managedGame()->gameShortName()
<< "--gamePath" << QString("\"%1\"").arg(m_OrganizerCore.managedGame()->gameDirectory().absolutePath())
+ << "--pluginListPath" << QString("%1/loadorder.txt").arg(m_OrganizerCore.profilePath())
<< "--out" << outPath;
- if (m_DidUpdateMasterList) {
+ /*if (m_DidUpdateMasterList) {
parameters << "--skipUpdateMasterlist";
} else {
m_DidUpdateMasterList = true;
- }
+ }*/
HANDLE stdOutWrite = INVALID_HANDLE_VALUE;
HANDLE stdOutRead = INVALID_HANDLE_VALUE;
createStdoutPipe(&stdOutRead, &stdOutWrite);