Skip to content

Commit

Permalink
Merge remote-tracking branch 'ZackHaber-upstream/new_vfs_library' int…
Browse files Browse the repository at this point in the history
…o new_vfs_library
  • Loading branch information
LePresidente committed Jan 13, 2017
2 parents c9766b6 + 866a004 commit bfeda87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ src/moc_*.cpp
src/ui_*.h
src/*.qrc.depends
src/Modorganizer.*
src/*.bak
CMakeLists.txt.user
edit
stderr.log
Expand Down
18 changes: 9 additions & 9 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -4241,19 +4244,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;
Expand Down Expand Up @@ -4369,7 +4368,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("?");
Expand All @@ -4378,7 +4378,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.
Expand Down

0 comments on commit bfeda87

Please sign in to comment.