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

Method substituteVariables

launcher/launch/LaunchTask.cpp:285–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void LaunchTask::substituteVariables(QStringList &args) const
286{
287 auto env = m_instance->createEnvironment();
288
289 for (auto key : env.keys())
290 {
291 args.replaceInStrings("$" + key, env.value(key));
292 }
293}
294
295void LaunchTask::substituteVariables(QString &cmd) const
296{

Callers 2

executeTaskMethod · 0.80
executeTaskMethod · 0.80

Calls 2

createEnvironmentMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected