Skip to content

Commit 64c134c

Browse files
authored
Merge pull request #6914 from lahodaj/to_enable_in_windows_launcher
Forcing restart when to_enable.txt file exists in the Windows launcher.
2 parents dc529e6 + 6aadb9a commit 64c134c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,15 @@ bool PlatformLauncher::shouldAutoUpdate(bool firstStart, const char *basePath) {
484484
return true;
485485
}
486486

487+
path = basePath;
488+
path += "\\update\\deactivate\\to_enable.txt";
489+
hFind = FindFirstFile(path.c_str(), &fd);
490+
if (hFind != INVALID_HANDLE_VALUE) {
491+
logMsg("to_enable.txt found: %s", path.c_str());
492+
FindClose(hFind);
493+
return true;
494+
}
495+
487496
path = basePath;
488497
path += "\\update\\deactivate\\to_uninstall.txt";
489498
hFind = FindFirstFile(path.c_str(), &fd);

0 commit comments

Comments
 (0)