mirror of
https://github.com/FroggMaster/CreamInstaller.git
synced 2026-06-12 11:01:23 -07:00
more string clarifications
This commit is contained in:
@@ -195,7 +195,7 @@ internal sealed partial class InstallForm : CustomForm
|
||||
completeOperationsCount = 0;
|
||||
foreach (ProgramSelection selection in programSelections)
|
||||
{
|
||||
if (Program.Canceled || !Program.IsProgramRunningDialog(this, selection))
|
||||
if (Program.Canceled || !Program.AreDllsLockedDialog(this, selection))
|
||||
throw new CustomMessageException("The operation was canceled.");
|
||||
try
|
||||
{
|
||||
|
||||
@@ -1002,7 +1002,7 @@ internal sealed partial class SelectForm : CustomForm
|
||||
{
|
||||
if (!ProgramSelection.All.Any())
|
||||
return;
|
||||
if (ProgramSelection.AllEnabled.Any(selection => !Program.IsProgramRunningDialog(this, selection)))
|
||||
if (ProgramSelection.AllEnabled.Any(selection => !Program.AreDllsLockedDialog(this, selection)))
|
||||
return;
|
||||
if (!uninstall && ParadoxLauncher.DlcDialog(this))
|
||||
return;
|
||||
|
||||
@@ -79,8 +79,8 @@ internal static class ParadoxLauncher
|
||||
internal static async Task<RepairResult> Repair(Form form, ProgramSelection selection)
|
||||
{
|
||||
InstallForm installForm = form as InstallForm;
|
||||
if (!Program.IsProgramRunningDialog(form, selection))
|
||||
return form is InstallForm ? throw new CustomMessageException("Repair failed! The launcher is currently running!") : RepairResult.ProgramRunning;
|
||||
if (!Program.AreDllsLockedDialog(form, selection))
|
||||
return form is InstallForm ? throw new CustomMessageException("Repair failed! One or more DLLs crucial to unlocker installation are locked!") : RepairResult.ProgramRunning;
|
||||
bool smokeInstalled = false;
|
||||
byte[] steamOriginalSdk32 = null;
|
||||
byte[] steamOriginalSdk64 = null;
|
||||
|
||||
@@ -50,7 +50,7 @@ internal static class Program
|
||||
return ProtectedGameDirectories.Any(path => (directory + path).DirectoryExists());
|
||||
}
|
||||
|
||||
internal static bool IsProgramRunningDialog(Form form, ProgramSelection selection)
|
||||
internal static bool AreDllsLockedDialog(Form form, ProgramSelection selection)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user