| 27 | } |
| 28 | |
| 29 | bool 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 | |
| 44 | bool BaseInstaller::remove(MinecraftInstance* from) |
| 45 | { |
nothing calls this directly
no test coverage detected