Skip to content

Commit

Permalink
SporeModManager: correct InstalledSporeMod == operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jul 19, 2022
1 parent 167218d commit a76076d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SporeModManager/SporeModManagerHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ namespace SporeModManagerHelpers
{
InstallLocation InstallLocation;
std::filesystem::path FileName;

bool operator==(const SporeModFile& other) const
{
return InstallLocation == other.InstallLocation &&
FileName == other.FileName;
}
};

struct SporeModInfoComponent
Expand Down Expand Up @@ -77,7 +83,7 @@ namespace SporeModManagerHelpers
return Name == other.Name &&
UniqueName == other.UniqueName &&
Description == other.Description &&
InstalledFiles.size() == other.InstalledFiles.size();
InstalledFiles == other.InstalledFiles;
}
};

Expand Down

0 comments on commit a76076d

Please sign in to comment.