Skip to content

Commit aa17298

Browse files
committed
further refinements to error messages
1 parent 5c1ef39 commit aa17298

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

FlashpointSecurePlayer/FlashpointSecurePlayerGUI.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private async Task ImportActiveX(ErrorDelegate errorDelegate) {
360360
fullPath = Path.GetFullPath(TemplateName);
361361
} catch (Exception ex) {
362362
LogExceptionToLauncher(ex);
363-
errorDelegate(String.Format(Properties.Resources.GameIsMissingFiles, TemplateName));
363+
errorDelegate(String.Format(Properties.Resources.GameIsMissingFile, TemplateName));
364364
throw new ActiveXImportFailedException("The ActiveX Import failed because getting the Full Path failed.");
365365
}
366366

@@ -382,7 +382,7 @@ private async Task ImportActiveX(ErrorDelegate errorDelegate) {
382382
throw new ActiveXImportFailedException("The ActiveX Import failed because the DLL is not an ActiveX Control.");
383383
} catch (Exception ex) {
384384
LogExceptionToLauncher(ex);
385-
errorDelegate(String.Format(Properties.Resources.GameIsMissingFiles, fullPath));
385+
errorDelegate(String.Format(Properties.Resources.GameIsMissingFile, fullPath));
386386
throw new ActiveXImportFailedException("The ActiveX Import failed because the DLL was not found.");
387387
}
388388

@@ -894,7 +894,7 @@ private async Task ActivateModificationsAsync(TemplateElement templateElement, E
894894
await downloadsBefore.ActivateAsync(TemplateName, DownloadsBeforeModificationNames).ConfigureAwait(true);
895895
} catch (DownloadFailedException ex) {
896896
LogExceptionToLauncher(ex);
897-
errorDelegate(String.Format(Properties.Resources.GameIsMissingFiles, String.Join(", ", DownloadsBeforeModificationNames)));
897+
errorDelegate(String.Format(Properties.Resources.GameIsMissingFile, String.Join(", ", DownloadsBeforeModificationNames)));
898898
} catch (ConfigurationErrorsException ex) {
899899
LogExceptionToLauncher(ex);
900900
errorDelegate(Properties.Resources.ConfigurationUnableToLoad);
@@ -918,7 +918,7 @@ private async Task ActivateModificationsAsync(TemplateElement templateElement, E
918918
AskLaunchAsAdministratorUser();
919919
} catch (ArgumentException ex) {
920920
LogExceptionToLauncher(ex);
921-
errorDelegate(Properties.Resources.GameIsMissingFiles);
921+
errorDelegate(Properties.Resources.GameIsMissingFile);
922922
} catch (InvalidOperationException ex) {
923923
LogExceptionToLauncher(ex);
924924
errorDelegate(Properties.Resources.ModificationsUnableToLoadImport);
@@ -1028,7 +1028,7 @@ private async Task DeactivateModificationsAsync(ErrorDelegate errorDelegate) {
10281028
AskLaunchAsAdministratorUser();
10291029
} catch (ArgumentException ex) {
10301030
LogExceptionToLauncher(ex);
1031-
errorDelegate(Properties.Resources.GameIsMissingFiles);
1031+
errorDelegate(Properties.Resources.GameIsMissingFile);
10321032
} catch (InvalidOperationException ex) {
10331033
LogExceptionToLauncher(ex);
10341034
errorDelegate(Properties.Resources.ModificationsUnableToLoadImport);

FlashpointSecurePlayer/Properties/Resources.Designer.cs

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FlashpointSecurePlayer/Properties/Resources.resx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<value>The ActiveX Control is unable to be uninstalled.</value>
125125
</data>
126126
<data name="AddressNotUnderstood" xml:space="preserve">
127-
<value>The address ({0}) wasn't understood. Please report this bug.</value>
127+
<value>The address "{0}" wasn't understood. Please report this bug.</value>
128128
</data>
129129
<data name="AnotherInstancePreventingTemplate" xml:space="preserve">
130130
<value>The Template could not be activated.
@@ -158,8 +158,8 @@ Please ensure Flashpoint is not corrupted, was extracted correctly, and is not r
158158
<data name="GameDownloading" xml:space="preserve">
159159
<value>The game is downloading.</value>
160160
</data>
161-
<data name="GameIsMissingFiles" xml:space="preserve">
162-
<value>The game files ({0}) are missing.
161+
<data name="GameIsMissingFile" xml:space="preserve">
162+
<value>The game file "{0}" is missing.
163163
Please ensure Flashpoint is not corrupted, was extracted correctly, and is not running from OneDrive or a network drive.</value>
164164
</data>
165165
<data name="GameNotActiveXControl" xml:space="preserve">
@@ -212,7 +212,7 @@ If you choose No, the application will exit.</value>
212212
<value>Open the Flashpoint Launcher by opening the Start Flashpoint shortcut in the Flashpoint folder.</value>
213213
</data>
214214
<data name="ProcessCompatibilityConflict" xml:space="preserve">
215-
<value>The process {0} causes a compatibility conflict with this game. Please close it to continue.</value>
215+
<value>The process "{0}" causes a compatibility conflict with this game. Please close it to continue.</value>
216216
</data>
217217
<data name="ProcessUnableToStart" xml:space="preserve">
218218
<value>The process is unable to start.</value>
@@ -244,8 +244,8 @@ If you choose No, the application will exit.</value>
244244
<data name="UnableToCreateCustomSecurityManager" xml:space="preserve">
245245
<value>Unable to create a Custom Security Manager.</value>
246246
</data>
247-
<data name="UnableToGetParentProcessEXEFileName" xml:space="preserve">
248-
<value>Unable to get the Parent Process EXE File Name.</value>
247+
<data name="UnableToGetParentProcessExecutableFileName" xml:space="preserve">
248+
<value>Unable to get the Parent Process Executable File Name.</value>
249249
</data>
250250
<data name="UnableToSetWorkingDirectory" xml:space="preserve">
251251
<value>Unable to set the Working Directory.</value>

0 commit comments

Comments
 (0)