Compare commits

...
Author SHA1 Message Date
Tannin 89e0c258e3 - added an option to show meta info on downloads instead of filenames
- MO will now cancel if user tries to run MO vfs-injected
- when saving the MO ini file it is now written to a tmp file first and then overwritten
- updated to link against boost python 1.55
2014-04-23 23:59:30 +02:00
Tannin dbbed655a1 - improved NCC compatibility
- crude support for multi-volume archives
- updated imageformats plugins
- nxmhandler now puts the exe to the top of the list when registering an MO instance, even if it is already in the list
- bugfix: WritePrivateProfileString hook attempted to access lpKeyName even when it is null
2014-03-26 15:35:59 +01:00
Tannin 376e23c34c - nxmhandler now has a ui to modify the proxy-handler
- mo now registers itself with nxmhandler when launching the browser
- pdbs are now generated for plugins
- reverted configurator to pyqt4
2013-06-29 21:10:53 +02:00
Tannin 23cd59932b - completed Qt5 compatibility
- added GetFileVerisonInfoW hook for Windows 8 compatibility
- fixed BossDummy to compile correctly with current version of the RGiesecke.DllExport assembly
- fixed NCC components compiling with different Framewerk versions
- dropped files-list in Nexus-tab of modinfo dialog
2013-06-15 14:42:20 +02:00
Tannin f58df55d2d - install plugins now get a chance to update name, version and modid of mods
- NCC now makes name, version and modid from the info.xml file available to the installer
- integrated fomod installer also uses version and modid from the info.xml
- mods can now be renamed during installation
- configurator plugin now highlights changed keys and saves changes
2013-06-05 09:51:48 +02:00
Tannin 6da60deda1 Merge with default 2013-03-29 10:12:34 +01:00
Tannin 281bdd40a9 Merge with branch1.0 2013-03-27 21:04:27 +01:00
Tannin 0419f0db69 - support for grouping filters for mod list (incomplete)
- offering multiple options for mod names during installation
- support for renaming profiles
- updated installer plugins
- minor bugfixes
2013-03-22 18:46:40 +01:00
4 changed files with 146 additions and 115 deletions
+8
View File
@@ -12,6 +12,11 @@ TEMPLATE = lib
CONFIG += plugins
CONFIG += dll
CONFIG(release, debug|release) {
QMAKE_CXXFLAGS += /Zi
QMAKE_LFLAGS += /DEBUG
}
DEFINES += INSTALLERBUNDLE_LIBRARY
SOURCES += installerbundle.cpp
@@ -20,3 +25,6 @@ HEADERS += installerbundle.h
include(../plugin_template.pri)
OTHER_FILES += \
installerbundle.json
+100 -81
View File
@@ -17,84 +17,103 @@ You should have received a copy of the GNU General Public License
along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
#include "installerbundle.h"
#include "iinstallationmanager.h"
#include <QtPlugin>
InstallerBundle::InstallerBundle()
{
}
bool InstallerBundle::init(IOrganizer*)
{
return true;
}
QString InstallerBundle::name() const
{
return "Bundle Installer";
}
QString InstallerBundle::author() const
{
return "Tannin";
}
QString InstallerBundle::description() const
{
return tr("Proxy-Installer to handle bundles containing the actual mod archive");
}
VersionInfo InstallerBundle::version() const
{
return VersionInfo(1, 0, 0, VersionInfo::RELEASE_FINAL);
}
bool InstallerBundle::isActive() const
{
return true;
}
QList<PluginSetting> InstallerBundle::settings() const
{
return QList<PluginSetting>();
}
unsigned int InstallerBundle::priority() const
{
return 10;
}
bool InstallerBundle::isManualInstaller() const
{
return false;
}
bool InstallerBundle::isArchiveSupported(const DirectoryTree &tree) const
{
for (DirectoryTree::const_leaf_iterator fileIter = tree.leafsBegin();
fileIter != tree.leafsEnd(); ++fileIter) {
if (fileIter->getName().endsWith(".fomod", Qt::CaseInsensitive)) {
return true;
}
}
return false;
}
IPluginInstaller::EInstallResult InstallerBundle::install(QString &modName, DirectoryTree &tree)
{
for (DirectoryTree::const_leaf_iterator fileIter = tree.leafsBegin();
fileIter != tree.leafsEnd(); ++fileIter) {
if (fileIter->getName().endsWith(".fomod", Qt::CaseInsensitive)) {
QString tempFile = manager()->extractFile(fileIter->getName());
return manager()->installArchive(modName, tempFile);
}
}
return IPluginInstaller::RESULT_NOTATTEMPTED;
}
Q_EXPORT_PLUGIN2(installerBundle, InstallerBundle)
#include "installerbundle.h"
#include "iinstallationmanager.h"
#include <QtPlugin>
using namespace MOBase;
InstallerBundle::InstallerBundle()
{
}
bool InstallerBundle::init(IOrganizer*)
{
return true;
}
QString InstallerBundle::name() const
{
return "Bundle Installer";
}
QString InstallerBundle::author() const
{
return "Tannin";
}
QString InstallerBundle::description() const
{
return tr("Proxy-Installer to handle bundles containing the actual mod archive");
}
VersionInfo InstallerBundle::version() const
{
return VersionInfo(1, 0, 0, VersionInfo::RELEASE_FINAL);
}
bool InstallerBundle::isActive() const
{
return true;
}
QList<PluginSetting> InstallerBundle::settings() const
{
return QList<PluginSetting>();
}
unsigned int InstallerBundle::priority() const
{
return 10;
}
bool InstallerBundle::isManualInstaller() const
{
return false;
}
bool InstallerBundle::isArchiveSupported(const DirectoryTree &tree) const
{
for (DirectoryTree::const_leaf_iterator fileIter = tree.leafsBegin();
fileIter != tree.leafsEnd(); ++fileIter) {
if (fileIter->getName().endsWith(".fomod", Qt::CaseInsensitive)) {
return true;
}
}
if ((tree.numNodes() == 0)
&& (tree.numLeafs() == 1)
&& (tree.leafsBegin()->getName().endsWith(".7z", Qt::CaseInsensitive)
|| tree.leafsBegin()->getName().endsWith(".rar", Qt::CaseInsensitive))) {
// nested archive
return true;
}
return false;
}
IPluginInstaller::EInstallResult InstallerBundle::install(GuessedValue<QString> &modName, DirectoryTree &tree,
QString&, int&)
{
for (DirectoryTree::const_leaf_iterator fileIter = tree.leafsBegin();
fileIter != tree.leafsEnd(); ++fileIter) {
QString name = fileIter->getName();
if (name.endsWith(".fomod", Qt::CaseInsensitive)
|| name.endsWith(".7z", Qt::CaseInsensitive)
|| name.endsWith(".rar", Qt::CaseInsensitive)) {
QString tempFile = manager()->extractFile(fileIter->getName());
IPluginInstaller::EInstallResult res = manager()->installArchive(modName, tempFile);
if (res == IPluginInstaller::RESULT_SUCCESS) {
res = IPluginInstaller::RESULT_SUCCESSCANCEL;
}
return res;
}
}
return IPluginInstaller::RESULT_NOTATTEMPTED;
}
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
Q_EXPORT_PLUGIN2(installerBundle, InstallerBundle)
#endif
+38 -34
View File
@@ -17,37 +17,41 @@ You should have received a copy of the GNU General Public License
along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef INSTALLERBUNDLE_H
#define INSTALLERBUNDLE_H
#include <iplugininstallersimple.h>
class InstallerBundle : public IPluginInstallerSimple
{
Q_OBJECT
Q_INTERFACES(IPlugin IPluginInstaller IPluginInstallerSimple)
public:
InstallerBundle();
virtual bool init(IOrganizer *moInfo);
virtual QString name() const;
virtual QString author() const;
virtual QString description() const;
virtual VersionInfo version() const;
virtual bool isActive() const;
virtual QList<PluginSetting> settings() const;
virtual unsigned int priority() const;
virtual bool isManualInstaller() const;
virtual bool isArchiveSupported(const DirectoryTree &tree) const;
virtual EInstallResult install(QString &modName, DirectoryTree &tree);
};
#endif // INSTALLERBUNDLE_H
#ifndef INSTALLERBUNDLE_H
#define INSTALLERBUNDLE_H
#include <iplugininstallersimple.h>
class InstallerBundle : public MOBase::IPluginInstallerSimple
{
Q_OBJECT
Q_INTERFACES(MOBase::IPlugin MOBase::IPluginInstaller MOBase::IPluginInstallerSimple)
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
Q_PLUGIN_METADATA(IID "org.tannin.InstallerBundle" FILE "installerbundle.json")
#endif
public:
InstallerBundle();
virtual bool init(MOBase::IOrganizer *moInfo);
virtual QString name() const;
virtual QString author() const;
virtual QString description() const;
virtual MOBase::VersionInfo version() const;
virtual bool isActive() const;
virtual QList<MOBase::PluginSetting> settings() const;
virtual unsigned int priority() const;
virtual bool isManualInstaller() const;
virtual bool isArchiveSupported(const MOBase::DirectoryTree &tree) const;
virtual EInstallResult install(MOBase::GuessedValue<QString> &modName, MOBase::DirectoryTree &tree,
QString &version, int &modID);
};
#endif // INSTALLERBUNDLE_H
View File