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

Method storageSuffix

launcher/minecraft/Library.cpp:341–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341QString Library::storageSuffix(const RuntimeContext & runtimeContext) const
342{
343 // non-native? use only the gradle specifier
344 if (!isNative())
345 {
346 return m_name.toPath(m_filename);
347 }
348
349 // otherwise native, override classifiers. Mojang HACK!
350 GradleSpecifier nativeSpec = m_name;
351 QString nativeClassifier = getCompatibleNative(runtimeContext);
352 if (!nativeClassifier.isNull())
353 {
354 nativeSpec.setClassifier(nativeClassifier);
355 }
356 else
357 {
358 nativeSpec.setClassifier("INVALID");
359 }
360 return nativeSpec.toPath(m_filename);
361}

Callers

nothing calls this directly

Calls 2

toPathMethod · 0.80
setClassifierMethod · 0.45

Tested by

no test coverage detected