From 9fbacd49da4346c3fd63d1574297ad7ee892d7c8 Mon Sep 17 00:00:00 2001 From: luiscuenca Date: Tue, 30 Jul 2019 14:19:26 -0700 Subject: [PATCH] Delete testing code --- launchers/win32/LauncherManager.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/launchers/win32/LauncherManager.cpp b/launchers/win32/LauncherManager.cpp index 46d65852e7..49ae058ef5 100644 --- a/launchers/win32/LauncherManager.cpp +++ b/launchers/win32/LauncherManager.cpp @@ -640,13 +640,6 @@ void LauncherManager::onFileDownloaded(ProcessType type) { } void LauncherManager::restartNewLauncher() { - CString tempPath; - LauncherManager::getAndCreatePaths(LauncherManager::PathType::Temp_Directory, tempPath); - tempPath += "hql.exe"; - CString installPath; - LauncherManager::getAndCreatePaths(LauncherManager::PathType::Launcher_Directory, installPath); - installPath += LAUNCHER_EXE_FILENAME; - CopyFile(installPath, tempPath, false); closeLog(); ContinueActionOnStart continueAction = ContinueActionOnStart::ContinueFinish; if (_keepUpdating) { @@ -656,8 +649,7 @@ void LauncherManager::restartNewLauncher() { } CStringW params; params.Format(_T(" --restart --noUpdate --continueAction %s"), getContinueActionParam(continueAction)); - LPTSTR par = params.GetBuffer(); - LauncherUtils::launchApplication(tempPath, par); + LauncherUtils::launchApplication(_tempLauncherPath, params.GetBuffer()); Sleep(500); }