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

Method executeTask

launcher/minecraft/launch/ReconstructAssets.cpp:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "minecraft/PackProfile.h"
21
22void ReconstructAssets::executeTask()
23{
24 auto instance = m_parent->instance();
25 auto components = instance->getPackProfile();
26 auto profile = components->getProfile();
27 auto assets = profile->getMinecraftAssets();
28
29 if (!AssetsUtils::reconstructAssets(assets->id, instance->resourcesDir())) {
30 emit logLine("Failed to reconstruct Minecraft assets.", MessageLevel::Error);
31 }
32
33 emitSucceeded();
34}

Callers

nothing calls this directly

Calls 6

reconstructAssetsFunction · 0.85
getPackProfileMethod · 0.80
getProfileMethod · 0.80
getMinecraftAssetsMethod · 0.80
resourcesDirMethod · 0.80
instanceMethod · 0.45

Tested by

no test coverage detected