| 29 | } |
| 30 | |
| 31 | bool 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 | |
| 49 | bool BaseInstaller::remove(MinecraftInstance *from) |
| 50 | { |
nothing calls this directly
no test coverage detected