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

Method getVariables

launcher/minecraft/MinecraftInstance.cpp:450–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450QMap<QString, QString> MinecraftInstance::getVariables()
451{
452 QMap<QString, QString> out;
453 out.insert("INST_NAME", name());
454 out.insert("INST_ID", id());
455 out.insert("INST_DIR", QDir(instanceRoot()).absolutePath());
456 out.insert("INST_MC_DIR", QDir(gameRoot()).absolutePath());
457 out.insert("INST_JAVA", settings()->get("JavaPath").toString());
458 out.insert("INST_JAVA_ARGS", javaArguments().join(' '));
459 return out;
460}
461
462QProcessEnvironment MinecraftInstance::createEnvironment()
463{

Callers

nothing calls this directly

Calls 5

insertMethod · 0.80
idFunction · 0.50
QDirClass · 0.50
toStringMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected