MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / removeJar

Method removeJar

launcher/minecraft/launch/ModMinecraftJar.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool ModMinecraftJar::removeJar()
84{
85 auto m_inst = m_parent->instance();
86 auto finalJarPath = QDir(m_inst->binRoot()).absoluteFilePath("minecraft.jar");
87 QFile finalJar(finalJarPath);
88 if (finalJar.exists()) {
89 if (!finalJar.remove()) {
90 return false;
91 }
92 }
93 return true;
94}

Callers

nothing calls this directly

Calls 5

binRootMethod · 0.80
existsMethod · 0.80
QDirClass · 0.50
instanceMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected