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

Method add

launcher/BaseInstaller.cpp:31–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

existsMethod · 0.80
instanceRootMethod · 0.80
QDirClass · 0.70

Tested by

no test coverage detected