diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2017-03-29 02:44:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-29 02:44:31 -0700 |
| commit | 822534e16a421520b7abdf0b698948eb2df88a63 (patch) | |
| tree | 16c61060a8aef581d0b322573c63ae6400ebbe86 /src/mainwindow.cpp | |
| parent | 99156abc6e0779ed3de437c0005b6de8293c7a15 (diff) | |
| parent | c64e12a289066c6b4834c43a49ff631a33b2f3ce (diff) | |
Merge pull request #69 from LePresidente/new_vfs_library
Bring in line with main branch
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f554f0aa..7c853578 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4228,7 +4228,11 @@ void MainWindow::on_bossButton_clicked() std::string reportURL;
std::string errorMessages;
- m_OrganizerCore.currentProfile()->writeModlistNow();
+ //m_OrganizerCore.currentProfile()->writeModlistNow();
+ m_OrganizerCore.savePluginList();
+ //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,19 +4245,15 @@ void MainWindow::on_bossButton_clicked() dialog.show();
QString outPath = QDir::temp().absoluteFilePath("lootreport.json");
-
+
QStringList parameters;
- parameters << "--unattended"
- << "--stdout"
- << "--noreport"
- << "--game" << m_OrganizerCore.managedGame()->gameShortName()
+ parameters << "--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) {
parameters << "--skipUpdateMasterlist";
- } else {
- m_DidUpdateMasterList = true;
}
HANDLE stdOutWrite = INVALID_HANDLE_VALUE;
HANDLE stdOutRead = INVALID_HANDLE_VALUE;
@@ -4369,7 +4369,8 @@ void MainWindow::on_bossButton_clicked() }
if (success) {
- if (reportURL.length() > 0) {
+ m_DidUpdateMasterList = true;
+ /*if (reportURL.length() > 0) {
m_IntegratedBrowser.setWindowTitle("LOOT Report");
QString report(reportURL.c_str());
QStringList temp = report.split("?");
@@ -4378,7 +4379,7 @@ void MainWindow::on_bossButton_clicked() url.setQuery(temp.at(1).toUtf8());
}
m_IntegratedBrowser.openUrl(url);
- }
+ }*/
// if the game specifies load order by file time, our own load order file needs to be removed because it's outdated.
// refreshESPList will then use the file time as the load order.
|
