NOISSUE Flatten gui and logic libraries into MultiMC

This commit is contained in:
Petr Mrázek
2021-07-25 19:11:59 +02:00
parent dd13368085
commit 20b9f2b42a
1113 changed files with 1228 additions and 1401 deletions
CMakeLists.txt
api
application
launcher
BaseInstaller.cppBaseInstaller.hBaseInstance.cppBaseInstance.hBaseVersion.hBaseVersionList.cppBaseVersionList.hCMakeLists.txtColorCache.cppColorCache.hColumnResizer.cppColumnResizer.hCommandline.cppCommandline.hDefaultVariable.hDesktopServices.cppDesktopServices.hEnv.cppEnv.hException.hExponentialSeries.hFileSystem.cppFileSystem.hFileSystem_test.cppFilter.cppFilter.hGZip.cppGZip.hGZip_test.cppGuiUtil.cppGuiUtil.hHoeDown.hInstanceCopyTask.cppInstanceCopyTask.hInstanceCreationTask.cppInstanceCreationTask.hInstanceImportTask.cppInstanceImportTask.hInstanceList.cppInstanceList.hInstancePageProvider.hInstanceProxyModel.cppInstanceProxyModel.hInstanceTask.cppInstanceTask.hInstanceWindow.cppInstanceWindow.hJavaCommon.cppJavaCommon.hJson.cppJson.hKonamiCode.cppKonamiCode.hLaunchController.cppLaunchController.hLoggedProcess.cppLoggedProcess.hMMCStrings.cppMMCStrings.hMMCZip.cppMMCZip.hMainWindow.cppMainWindow.hMessageLevel.cppMessageLevel.hMultiMC.cppMultiMC.hNullInstance.hProblemProvider.hQObjectPtr.hRWStorage.hRecursiveFileSystemWatcher.cppRecursiveFileSystemWatcher.hSeparatorPrefixTree.hSkinUtils.cppSkinUtils.hUpdateController.cppUpdateController.hUsable.hVersion.cppVersion.hVersionProxyModel.cppVersionProxyModel.hVersion_test.cppWatchLock.h
dialogs
groupview
icons
install_prereqs.cmake.in
java
launch
main.cpp
meta
minecraft
AssetsUtils.cppAssetsUtils.hComponent.cppComponent.hComponentUpdateTask.cppComponentUpdateTask.hComponentUpdateTask_p.hGradleSpecifier.hGradleSpecifier_test.cppLaunchProfile.cppLaunchProfile.hLibrary.cppLibrary.hLibrary_test.cppMinecraftInstance.cppMinecraftInstance.hMinecraftLoadAndCheck.cppMinecraftLoadAndCheck.hMinecraftUpdate.cppMinecraftUpdate.hMojangDownloadInfo.hMojangVersionFormat.cppMojangVersionFormat.hMojangVersionFormat_test.cppOneSixVersionFormat.cppOneSixVersionFormat.hOpSys.cppOpSys.hPackProfile.cppPackProfile.hPackProfile_p.hParseUtils.cppParseUtils.hParseUtils_test.cppProfileUtils.cppProfileUtils.hRule.cppRule.hVersionFile.cppVersionFile.hVersionFilterData.cppVersionFilterData.hWorld.cppWorld.hWorldList.cppWorldList.h
auth-msa
auth
gameoptions
launch
legacy
mod
services
testdata
update
modplatform
mojang
net
news
notifications
package
pagedialog
pages
BasePage.hBasePageContainer.hBasePageProvider.h
global
instance
modplatform
pathmatcher
resources
MultiMC.icnsMultiMC.icoMultiMC.manifest
OSX
assets
backgrounds
documents
flat
iOS
multimc.rc
multimc
128x128
16x16
22x22
24x24
256x256
32x32
48x48
50x50
instances
64x64
8x8
index.thememultimc.qrc
scalable
pe_blue
pe_colored
pe_dark
pe_light
sources
screenshots
settings
setupwizard
status
tasks
testdata
themes
tools
translations
updater
widgets

@@ -0,0 +1,44 @@
/* Copyright 2013-2021 MultiMC Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "JavaCheckerJob.h"
#include <QDebug>
void JavaCheckerJob::partFinished(JavaCheckResult result)
{
num_finished++;
qDebug() << m_job_name.toLocal8Bit() << "progress:" << num_finished << "/"
<< javacheckers.size();
setProgress(num_finished, javacheckers.size());
javaresults.replace(result.id, result);
if (num_finished == javacheckers.size())
{
emitSucceeded();
}
}
void JavaCheckerJob::executeTask()
{
qDebug() << m_job_name.toLocal8Bit() << " started.";
for (auto iter : javacheckers)
{
javaresults.append(JavaCheckResult());
connect(iter.get(), SIGNAL(checkFinished(JavaCheckResult)), SLOT(partFinished(JavaCheckResult)));
iter->performCheck();
}
}