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

Method applyMavenFile

launcher/minecraft/LaunchProfile.cpp:208–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void LaunchProfile::applyMavenFile(LibraryPtr mavenFile, const RuntimeContext & runtimeContext)
209{
210 if(!mavenFile->isActive(runtimeContext))
211 {
212 return;
213 }
214
215 if(mavenFile->isNative())
216 {
217 return;
218 }
219
220 // unlike libraries, we do not keep only one version or try to dedupe them
221 m_mavenFiles.append(Library::limitedCopy(mavenFile));
222}
223
224void LaunchProfile::applyAgent(AgentPtr agent, const RuntimeContext & runtimeContext)
225{

Callers 1

applyToMethod · 0.80

Calls 3

isNativeMethod · 0.80
appendMethod · 0.80
isActiveMethod · 0.45

Tested by

no test coverage detected