mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 04:32:14 +00:00
HACK add option to launch without a main jar
This commit is contained in:
@@ -162,12 +162,20 @@ const LibraryPtr LaunchProfile::getMainJar() const
|
||||
return m_mainJar;
|
||||
}
|
||||
|
||||
void LaunchProfile::applyMainJar(LibraryPtr jar)
|
||||
void LaunchProfile::applyMainJar(LibraryPtr jar, bool removeMainJar)
|
||||
{
|
||||
if(jar)
|
||||
if(removeMainJar)
|
||||
{
|
||||
m_mainJar.reset();
|
||||
}
|
||||
else if(jar)
|
||||
{
|
||||
m_mainJar = jar;
|
||||
}
|
||||
else
|
||||
{
|
||||
// mainJar was not specified, NOOP
|
||||
}
|
||||
}
|
||||
|
||||
void LaunchProfile::applyProblemSeverity(ProblemSeverity severity)
|
||||
|
||||
Reference in New Issue
Block a user