Skip to content

Commit b4feca5

Browse files
committed
Move to Resources file
1 parent 65275e4 commit b4feca5

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

FlashpointSecurePlayer/FlashpointSecurePlayerGUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public FlashpointSecurePlayerGUI() {
7474
}
7575
} catch (InvalidOperationException ex) {
7676
LogExceptionToLauncher(ex);
77-
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
7877
} finally {
7978
if (!createdNew) {
79+
MessageBox.Show(Properties.Resources.NoMultipleInstances, Properties.Resources.FlashpointSecurePlayer, MessageBoxButtons.OK, MessageBoxIcon.Error);
8080
Environment.Exit(-2);
8181
}
8282
}

FlashpointSecurePlayer/Properties/Resources.Designer.cs

Lines changed: 9 additions & 0 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ If you choose No, the application will exit.</value>
190190
<data name="NoModeSelected" xml:space="preserve">
191191
<value>No mode was selected.</value>
192192
</data>
193+
<data name="NoMultipleInstances" xml:space="preserve">
194+
<value>You cannot run multiple instances of Flashpoint Secure Player.</value>
195+
</data>
193196
<data name="OCS_CPUSpeedNotDetermined" xml:space="preserve">
194197
<value>The CPU's clock speed could not be determined.</value>
195198
</data>

0 commit comments

Comments
 (0)