summaryrefslogtreecommitdiff
path: root/src/modinfobackup.cpp
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-10-15 13:34:01 +0100
committerThomas Tanner <trtanner@btinternet.com>2015-10-15 13:34:01 +0100
commit9d88ca13b9b6a193dfb17a1ee3ea5e5cbed8a7e9 (patch)
tree8ec975d9efa7b4376573a1f3a05e0063e711e364 /src/modinfobackup.cpp
parentec07d3d4d9ec2245f0b23edf6746f4ae1e5dfce4 (diff)
Added functionality to use the web page link in a fomod to supply an optional web page.
Also refactored modinfo into multiple files (as the actual types are opaque anyway) and cleaned up the headers a bit I also changed 'visit on nexus' from the menu not to open the downloads tab because it was a little confusing
Diffstat (limited to 'src/modinfobackup.cpp')
-rw-r--r--src/modinfobackup.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/modinfobackup.cpp b/src/modinfobackup.cpp
new file mode 100644
index 00000000..a57b84fe
--- /dev/null
+++ b/src/modinfobackup.cpp
@@ -0,0 +1,20 @@
+#include "modinfobackup.h"
+
+std::vector<ModInfo::EFlag> ModInfoBackup::getFlags() const
+{
+ std::vector<ModInfo::EFlag> result = ModInfoRegular::getFlags();
+ result.insert(result.begin(), ModInfo::FLAG_BACKUP);
+ return result;
+}
+
+
+QString ModInfoBackup::getDescription() const
+{
+ return tr("This is the backup of a mod");
+}
+
+
+ModInfoBackup::ModInfoBackup(const QDir &path, MOShared::DirectoryEntry **directoryStructure)
+ : ModInfoRegular(path, directoryStructure)
+{
+}