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

Method gameRoot

launcher/minecraft/MinecraftInstance.cpp:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233QString MinecraftInstance::gameRoot() const
234{
235 QFileInfo mcDir(FS::PathCombine(instanceRoot(), "minecraft"));
236 QFileInfo dotMCDir(FS::PathCombine(instanceRoot(), ".minecraft"));
237
238 if (mcDir.exists() && !dotMCDir.exists())
239 return mcDir.filePath();
240 else
241 return dotMCDir.filePath();
242}
243
244QString MinecraftInstance::binRoot() const
245{

Callers 10

updateInstanceMethod · 0.45
updateInstanceMethod · 0.45
handleClearLogsButtonMethod · 0.45
updateCalculationsMethod · 0.45
ServersPageMethod · 0.45
executeTaskMethod · 0.45
executeTaskMethod · 0.45

Calls 3

PathCombineFunction · 0.85
existsMethod · 0.80
filePathMethod · 0.80

Tested by

no test coverage detected