mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c64e12a289 | ||
|
|
9438098cf1 | ||
|
|
4269e82c80 | ||
|
|
d63c164a74 | ||
|
|
45cc67da05 | ||
|
|
0da2060da4 | ||
|
|
4149ce4cdb | ||
|
|
f2b33d75cb | ||
|
|
d869d99785 | ||
|
|
bfeda873c4 | ||
|
|
c9766b6e1a | ||
|
|
03328e9f55 | ||
|
|
c48d1c36b7 | ||
|
|
866a004438 | ||
|
|
8b8ddc8163 | ||
|
|
5dc1ee3da6 | ||
|
|
dd653c3752 | ||
|
|
a8556eacb6 | ||
|
|
f0810bfa43 | ||
|
|
7432f7870b | ||
|
|
71f9c4f69d | ||
|
|
71b4911c8c | ||
|
|
d1ed7ae5d7 | ||
|
|
1cf368c126 | ||
|
|
a3671a5557 | ||
|
|
5ae681e6d5 |
@@ -4,6 +4,7 @@ src/moc_*.cpp
|
||||
src/ui_*.h
|
||||
src/*.qrc.depends
|
||||
src/Modorganizer.*
|
||||
src/*.bak
|
||||
CMakeLists.txt.user
|
||||
edit
|
||||
stderr.log
|
||||
|
||||
+11
-10
@@ -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.
|
||||
|
||||
@@ -732,6 +732,9 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="text">
|
||||
<string>Sort</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/MO/gui/sort</normaloff>:/MO/gui/sort</iconset>
|
||||
|
||||
+15
-4
@@ -703,6 +703,16 @@ QString OrganizerCore::downloadsPath() const
|
||||
return QDir::fromNativeSeparators(m_Settings.getDownloadDirectory());
|
||||
}
|
||||
|
||||
QString OrganizerCore::overwritePath() const
|
||||
{
|
||||
return QDir::fromNativeSeparators(m_Settings.getOverwriteDirectory());
|
||||
}
|
||||
|
||||
QString OrganizerCore::basePath() const
|
||||
{
|
||||
return QDir::fromNativeSeparators(m_Settings.getBaseDirectory());
|
||||
}
|
||||
|
||||
MOBase::VersionInfo OrganizerCore::appVersion() const
|
||||
{
|
||||
return m_Updater.getVersion();
|
||||
@@ -1239,11 +1249,12 @@ bool OrganizerCore::waitForProcessCompletion(HANDLE handle, LPDWORD exitCode)
|
||||
|
||||
DWORD res;
|
||||
// Wait for a an event on the handle, a key press, mouse click or timeout
|
||||
//TODO: Remove MOBase::isOneOf from this query as it was always returning true.
|
||||
while (
|
||||
res = ::MsgWaitForMultipleObjects(1, &handle, false, 500,
|
||||
QS_KEY | QS_MOUSE),
|
||||
(MOBase::isOneOf(res, {WAIT_FAILED, WAIT_OBJECT_0}) &&
|
||||
((m_UserInterface == nullptr) || !m_UserInterface->unlockClicked()))) {
|
||||
((res != WAIT_FAILED) || (res != WAIT_OBJECT_0)) &&
|
||||
((m_UserInterface == nullptr) || !m_UserInterface->unlockClicked())) {
|
||||
|
||||
if (!::GetVFSProcessList(&numProcesses, processes)) {
|
||||
break;
|
||||
@@ -1255,9 +1266,9 @@ bool OrganizerCore::waitForProcessCompletion(HANDLE handle, LPDWORD exitCode)
|
||||
for (size_t i = 0; i < count; ++i) {
|
||||
std::wstring processName = getProcessName(processes[i]);
|
||||
if (!boost::starts_with(processName, L"ModOrganizer.exe")) {
|
||||
currentProcess = processes[i];
|
||||
currentProcess = processes[i];
|
||||
m_UserInterface->setProcessName(QString::fromStdWString(processName));
|
||||
processHandle = ::OpenProcess(SYNCHRONIZE, FALSE, currentProcess);
|
||||
processHandle = ::OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, currentProcess);
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,6 +165,8 @@ public:
|
||||
QString profileName() const;
|
||||
QString profilePath() const;
|
||||
QString downloadsPath() const;
|
||||
QString overwritePath() const;
|
||||
QString basePath() const;
|
||||
MOBase::VersionInfo appVersion() const;
|
||||
MOBase::IModInterface *getMod(const QString &name) const;
|
||||
MOBase::IModInterface *createMod(MOBase::GuessedValue<QString> &name);
|
||||
|
||||
@@ -37,9 +37,15 @@ QString OrganizerProxy::downloadsPath() const
|
||||
|
||||
QString OrganizerProxy::overwritePath() const
|
||||
{
|
||||
return QDir::fromNativeSeparators(qApp->property("dataPath").toString())
|
||||
/*return QDir::fromNativeSeparators(qApp->property("dataPath").toString())
|
||||
+ "/"
|
||||
+ ToQString(AppConfig::overwritePath());
|
||||
+ ToQString(AppConfig::overwritePath());*/
|
||||
return m_Proxied->overwritePath();
|
||||
}
|
||||
|
||||
QString OrganizerProxy::basePath() const
|
||||
{
|
||||
return m_Proxied->basePath();
|
||||
}
|
||||
|
||||
VersionInfo OrganizerProxy::appVersion() const
|
||||
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
virtual QString profilePath() const;
|
||||
virtual QString downloadsPath() const;
|
||||
virtual QString overwritePath() const;
|
||||
virtual QString basePath() const;
|
||||
virtual MOBase::VersionInfo appVersion() const;
|
||||
virtual MOBase::IModInterface *getMod(const QString &name) const;
|
||||
virtual MOBase::IModInterface *createMod(MOBase::GuessedValue<QString> &name);
|
||||
|
||||
+2
-1
@@ -105,7 +105,8 @@ SelfUpdater::SelfUpdater(NexusInterface *nexusInterface)
|
||||
|
||||
m_MOVersion = VersionInfo(version.dwFileVersionMS >> 16,
|
||||
version.dwFileVersionMS & 0xFFFF,
|
||||
version.dwFileVersionLS >> 16);
|
||||
version.dwFileVersionLS >> 16,
|
||||
version.dwFileVersionLS & 0xFFFF);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
#include "Winver.h"
|
||||
|
||||
#define VER_FILEVERSION 2,0,8
|
||||
#define VER_FILEVERSION_STR "2.0.8beta\0"
|
||||
#define VER_FILEVERSION 2,0,8,3
|
||||
#define VER_FILEVERSION_STR "2.0.8.3beta\0"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION VER_FILEVERSION
|
||||
|
||||
Reference in New Issue
Block a user