Skip to content

Commit 5752fd2

Browse files
authored
Merge pull request #12 from WumboSpasm/master
Display error message when opening second instance
2 parents d7327ea + b4feca5 commit 5752fd2

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

FlashpointSecurePlayer/FlashpointSecurePlayerGUI.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public FlashpointSecurePlayerGUI() {
7676
LogExceptionToLauncher(ex);
7777
} finally {
7878
if (!createdNew) {
79+
MessageBox.Show(Properties.Resources.NoMultipleInstances, Properties.Resources.FlashpointSecurePlayer, MessageBoxButtons.OK, MessageBoxIcon.Error);
7980
Environment.Exit(-2);
8081
}
8182
}

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)