File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Universal THCRAP Launcher Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 5
5
using System . Globalization ;
6
6
using System . IO ;
7
7
using System . Linq ;
8
+ using System . Media ;
8
9
using System . Net ;
9
10
using System . Reflection ;
10
11
using System . Text ;
@@ -413,6 +414,20 @@ private void openConfigureTS_Click(object sender, EventArgs e)
413
414
414
415
private void openSelectedPatchConfigurationTS_Click ( object sender , EventArgs e )
415
416
{
417
+ if ( patchListBox . SelectedIndex == - 1 )
418
+ {
419
+ SystemSounds . Hand . Play ( ) ;
420
+ return ;
421
+ }
422
+
423
+ string v ;
424
+ v = ( I18N . LangResource . mainForm . vanilla . ToString ( ) is null ) ? @"VANILLA" : I18N . LangResource . mainForm . vanilla . ToString ( ) ;
425
+ if ( patchListBox . SelectedItem . ToString ( ) . Contains ( v ) )
426
+ {
427
+ SystemSounds . Hand . Play ( ) ;
428
+ return ;
429
+ }
430
+
416
431
string path = Directory . GetCurrentDirectory ( ) + @"\" + CONFIG_FOLDER +
417
432
patchListBox . SelectedItem . ToString ( ) . Replace ( " ★" , "" ) ;
418
433
if ( Configuration1 . HidePatchExtension )
You can’t perform that action at this time.
0 commit comments