MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / reload

Method reload

launcher/minecraft/PackProfile.cpp:323–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323PackProfile::Result PackProfile::reload(Net::Mode netmode)
324{
325 // Do not reload when the update/resolve task is running. It is in control.
326 if (d->m_updateTask) {
327 return Result::Success();
328 }
329
330 // flush any scheduled saves to not lose state
331 saveNow();
332
333 // FIXME: differentiate when a reapply is required by propagating state from components
334 invalidateLaunchProfile();
335
336 if (auto result = load(); !result) {
337 return result;
338 }
339 resolve(netmode);
340 return Result::Success();
341}
342
343Task::Ptr PackProfile::getCurrentTask()
344{

Callers 5

reloadSettingsMethod · 0.45
CoreModFolderPageMethod · 0.45
reloadPackProfileMethod · 0.45
executeTaskMethod · 0.45

Calls 1

loadFunction · 0.85

Tested by

no test coverage detected