Example #1
0
Mod::Mod(const Mod& mod)
{
	modFile = mod.GetFileName();
	modName = mod.GetName();
	modVersion = mod.GetModVersion();
	mcVersion = mod.GetMCVersion();
}
Example #2
0
void Instance::DeleteMLMod(size_t index)
{
	Mod *mod = &mlModList[index];
	if (wxRemoveFile(mod->GetFileName().GetFullPath()))
	{
		mlModList.erase(mlModList.begin() + index);
	}
	else
	{
		wxLogError(_("Failed to delete mod."));
	}
}
Example #3
0
bool Mod::operator ==(const Mod &other) const
{
	return GetFileName().SameAs(other.GetFileName());
}