mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 04:53:28 +02:00
Fix set process
This commit is contained in:
parent
ec63684866
commit
25c4ad76be
1 changed files with 5 additions and 1 deletions
|
@ -518,6 +518,7 @@ BOOL LauncherManager::extractApplication() {
|
|||
std::function<void(float)> onProgress = [&](float progress) {
|
||||
updateProgress(ProcessType::UnzipApplication, progress);
|
||||
};
|
||||
_currentProcess = ProcessType::UnzipApplication;
|
||||
BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipApplication,
|
||||
LauncherUtils::cStringToStd(_applicationZipPath),
|
||||
LauncherUtils::cStringToStd(installPath),
|
||||
|
@ -578,6 +579,7 @@ BOOL LauncherManager::installContent() {
|
|||
std::function<void(float)> onProgress = [&](float progress) {
|
||||
updateProgress(ProcessType::UnzipContent, progress);
|
||||
};
|
||||
_currentProcess = ProcessType::UnzipContent;
|
||||
BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipContent, contentZipFile,
|
||||
LauncherUtils::cStringToStd(contentPath), onInstallFinished, onProgress);
|
||||
if (success) {
|
||||
|
@ -636,6 +638,8 @@ void LauncherManager::onCancel() {
|
|||
if (_currentProcess == ProcessType::UnzipApplication) {
|
||||
_latestVersion = _T("");
|
||||
_version = _T("");
|
||||
createConfigJSON();
|
||||
if (!createConfigJSON()) {
|
||||
TRACE(_T("err"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue