summaryrefslogtreecommitdiffstats
path: root/logic/Mod.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/Mod.h')
-rw-r--r--logic/Mod.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/logic/Mod.h b/logic/Mod.h
index f14818d1..ea0827bd 100644
--- a/logic/Mod.h
+++ b/logic/Mod.h
@@ -47,12 +47,15 @@ public:
// change the mod's filesystem path (used by mod lists for *MAGIC* purposes)
void repath(const QFileInfo &file);
-
+ // WEAK compare operator - used for replacing mods
bool operator ==(const Mod &other) const
{
return filename() == other.filename();
}
-
+ bool strongCompare(const Mod &other) const
+ {
+ return filename() == other.filename() && id() == other.id() && version() == other.version() && type() == other.type();
+ }
protected:
//FIXME: what do do with those? HMM...