summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-11-24 14:21:19 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-11-24 14:21:19 +0000
commitc7d583bcf1eeb08182f5f7610690ba104e0f8a84 (patch)
tree7f6d4f003833c12eaba874533f01f4282220ea20 /src/mainwindow.cpp
parentd6da51536f28e9b58bcd302bf2726da7ec3dcc6f (diff)
Replace GameInfo::getLoadorderMechanism with IPluginGame::getLoadOrderMechanism
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c08993c1..1651d0c6 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4527,12 +4527,12 @@ void MainWindow::on_bossButton_clicked()
// 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.
- if (GameInfo::instance().getLoadOrderMechanism() == GameInfo::TYPE_FILETIME) {
+ if (m_OrganizerCore.managedGame()->getLoadOrderMechanism() == IPluginGame::LoadOrderMechanism::FileTime) {
qDebug("removing loadorder.txt");
QFile::remove(m_OrganizerCore.currentProfile()->getLoadOrderFileName());
}
m_OrganizerCore.refreshESPList();
- if (GameInfo::instance().getLoadOrderMechanism() == GameInfo::TYPE_FILETIME) {
+ if (m_OrganizerCore.managedGame()->getLoadOrderMechanism() == IPluginGame::LoadOrderMechanism::FileTime) {
// the load order should have been retrieved from file time, now save it to our own format
m_OrganizerCore.savePluginList();
}