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

Method add

launcher/BaseInstaller.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool BaseInstaller::add(MinecraftInstance* to)
30{
31 if (!patchesDir(to->instanceRoot()).exists()) {
32 QDir(to->instanceRoot()).mkdir("patches");
33 }
34
35 if (isApplied(to)) {
36 if (!remove(to)) {
37 return false;
38 }
39 }
40
41 return true;
42}
43
44bool BaseInstaller::remove(MinecraftInstance* from)
45{

Callers

nothing calls this directly

Calls 3

existsMethod · 0.80
instanceRootMethod · 0.80
QDirClass · 0.70

Tested by

no test coverage detected