refactor: move classpath definition into NewLaunch itself

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2022-08-18 18:06:45 +02:00
parent ab766a0598
commit 01505910f4
3 changed files with 76 additions and 40 deletions

View File

@ -562,6 +562,11 @@ QString MinecraftInstance::createLaunchScript(AuthSessionPtr session, MinecraftS
if(!profile)
return QString();
for (auto cp : getClassPath())
{
launchScript += "classPath " + cp + "\n";
}
auto mainClass = getMainClass();
if (!mainClass.isEmpty())
{