Compare commits

..
Author SHA1 Message Date
Tannin 72f14df8a7 - bugfix: "overwrite" is no longer a localizable string, at least for now, because some pieces of code rely on the name 2013-09-02 19:22:40 +02:00
Tannin 0fa7155eb8 - bugfix: division-by-zero error in the newly introduced server-speed calculation
- bugfix: temp files extracted during fomod installation were not cleaned up. This still doesn't remove directories
- bugfix: fomod installer didn't find the installer xmls because they are in a subdirectory since release 0.99.4
2013-09-02 18:51:17 +02:00
Tannin c6c61ce792 Added tag release v0.99.4 for changeset a2ccfea95ef0 2013-09-02 18:48:52 +02:00
Tannin ef801879ab - separated python proxy into two dlls. One is a wrapper without external
dependencies that fulfills the plugin interface. The other contains the actual python
functionality. This way the outer dll can always be loaded and report issues.
- The build process embeds the second dll into the first, this way only one dll has to be shipped
2013-09-01 18:36:43 +02:00
7 changed files with 17 additions and 8 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ SUBDIRS = bsatk \
plugins \
proxydll \
nxmhandler \
BossDummy
BossDummy \
pythonRunner
hookdll.depends = shared
organizer.depends = shared, uibase, plugins
+3 -1
View File
@@ -1150,7 +1150,9 @@ void DownloadManager::downloadFinished()
QVariantMap serverMap = server.toMap();
if (serverMap["URI"].toString() == url) {
int deltaTime = info->m_StartTime.secsTo(QTime::currentTime());
emit downloadSpeed(serverMap["Name"].toString(), (info->m_TotalSize - info->m_PreResumeSize) / deltaTime);
if (deltaTime > 5) {
emit downloadSpeed(serverMap["Name"].toString(), (info->m_TotalSize - info->m_PreResumeSize) / deltaTime);
} // no division by zero please! Also, if the download is shorter than a few seconds, the result is way to inprecise
break;
}
}
+7 -1
View File
@@ -152,7 +152,6 @@ bool InstallationManager::unpackSingleFile(const QString &fileName)
if (_wcsicmp(data[i]->getFileName(), ToWString(fileName).c_str()) == 0) {
available = true;
data[i]->setSkip(false);
qDebug("usf %ls -> %s", data[i]->getFileName(), qPrintable(baseName));
data[i]->setOutputFileName(ToWString(baseName).c_str());
m_TempFilesToDelete.insert(baseName);
} else {
@@ -727,6 +726,13 @@ bool InstallationManager::install(const QString &fileName, GuessedValue<QString>
qPrintable(installer->name()), e.what());
}
// clean up temp files
// TODO: this doesn't yet remove directories. Also, the files may be left there if this point isn't reached
foreach (const QString &tempFile, m_TempFilesToDelete) {
QFile::remove(QDir::tempPath() + "/" + tempFile);
}
// act upon the installation result. at this point the files have already been
// extracted to the correct location
switch (installResult) {
+1 -1
View File
@@ -809,7 +809,7 @@ public:
virtual void setNeverEndorse() {}
virtual bool remove() { return false; }
virtual void endorse(bool) {}
virtual QString name() const { return tr("Overwrite"); }
virtual QString name() const { return "Overwrite"; }
virtual QString notes() const { return ""; }
virtual QDateTime creationTime() const { return QDateTime::currentDateTime(); }
virtual QString absolutePath() const;
+1 -1
View File
@@ -91,7 +91,7 @@ QVariant ModList::getOverwriteData(int column, int role) const
switch (role) {
case Qt::DisplayRole: {
if (column == 0) {
return tr("Overwrite");
return "Overwrite";
} else {
return QVariant();
}
+1 -1
View File
@@ -40,7 +40,7 @@ using namespace MOShared;
NXMAccessManager::NXMAccessManager(QObject *parent)
: QNetworkAccessManager(parent), m_LoginReply(NULL)
: QNetworkAccessManager(parent), m_LoginReply(NULL), m_ProgressDialog()
{
}
+2 -2
View File
@@ -1,7 +1,7 @@
#include "Winver.h"
#define VER_FILEVERSION 0,99,4,0
#define VER_FILEVERSION_STR "0,99,4,0\0"
#define VER_FILEVERSION 0,99,5,0
#define VER_FILEVERSION_STR "0,99,5,0\0"
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION