MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / destroy

Method destroy

launcher/minecraft/mod/Mod.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115auto Mod::destroy(QDir& index_dir, bool preserve_metadata) -> bool
116{
117 if (!preserve_metadata) {
118 qDebug() << QString("Destroying metadata for '%1' on purpose").arg(name());
119
120 if (metadata()) {
121 Metadata::remove(index_dir, metadata()->slug);
122 } else {
123 auto n = name();
124 Metadata::remove(index_dir, n);
125 }
126 }
127
128 return Resource::destroy();
129}
130
131auto Mod::details() const -> const ModDetails&
132{

Callers 5

uninstallResourceMethod · 0.45
deleteResourcesMethod · 0.45
uninstallModMethod · 0.45
deleteModsMethod · 0.45
executeTaskMethod · 0.45

Calls 1

QStringClass · 0.85

Tested by

no test coverage detected