mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
fix: add missing returns after emitFailed/Aborted
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
ef747055af
commit
507de0fcbd
12 changed files with 17 additions and 11 deletions
|
|
@ -51,11 +51,13 @@ void ModMinecraftJar::executeTask()
|
|||
// nuke obsolete stripped jar(s) if needed
|
||||
if (!FS::ensureFolderPathExists(m_inst->binRoot())) {
|
||||
emitFailed(tr("Couldn't create the bin folder for Minecraft.jar"));
|
||||
return;
|
||||
}
|
||||
|
||||
auto finalJarPath = QDir(m_inst->binRoot()).absoluteFilePath("minecraft.jar");
|
||||
if (!removeJar()) {
|
||||
emitFailed(tr("Couldn't remove stale jar file: %1").arg(finalJarPath));
|
||||
return;
|
||||
}
|
||||
|
||||
// create temporary modded jar, if needed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue