@@ -571,7 +571,7 @@ private void StartThcrap()
571
571
{
572
572
if ( patchListBox . SelectedIndex == - 1 || gameListBox . SelectedIndex == - 1 )
573
573
{
574
- MessageBox . Show ( I18N . LangResource . errors . noneSelected , I18N . LangResource . errors . error , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
574
+ MessageBox . Show ( I18N . LangResource . errors . noneSelected . ToString ( ) , I18N . LangResource . errors . error . ToString ( ) , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
575
575
return ;
576
576
}
577
577
@@ -862,12 +862,12 @@ private void gitHubPageTS_Click(object sender, EventArgs e) =>
862
862
863
863
private void openConfigureTS_Click ( object sender , EventArgs e )
864
864
{
865
- MessageBox . Show ( I18N . LangResource . popup . hideLauncher . text ,
866
- I18N . LangResource . popup . hideLauncher . caption , MessageBoxButtons . OK , MessageBoxIcon . Information ) ;
865
+ MessageBox . Show ( I18N . LangResource . popup . hideLauncher . text . ToString ( ) ,
866
+ I18N . LangResource . popup . hideLauncher . caption . ToString ( ) , MessageBoxButtons . OK , MessageBoxIcon . Information ) ;
867
867
var p = Process . Start ( "thcrap_configure.exe" ) ;
868
868
if ( p == null )
869
869
{
870
- MessageBox . Show ( I18N . LangResource . errors . oops , I18N . LangResource . errors . error ) ;
870
+ MessageBox . Show ( I18N . LangResource . errors . oops . ToString ( ) , I18N . LangResource . errors . error . ToString ( ) ) ;
871
871
return ;
872
872
}
873
873
@@ -885,9 +885,9 @@ private void createShortcutTS_Click(object sender, EventArgs e)
885
885
{
886
886
var shDesktop = ( object ) "Desktop" ;
887
887
var shell = new WshShell ( ) ;
888
- var shortcutAddress = ( string ) shell . SpecialFolders . Item ( ref shDesktop ) + I18N . LangResource . shCreate . file + ".lnk" ;
888
+ var shortcutAddress = ( string ) shell . SpecialFolders . Item ( ref shDesktop ) + I18N . LangResource . shCreate . file . ToString ( ) + ".lnk" ;
889
889
var shortcut = ( IWshShortcut ) shell . CreateShortcut ( shortcutAddress ) ;
890
- shortcut . Description = I18N . LangResource . shCreate . desc ;
890
+ shortcut . Description = I18N . LangResource . shCreate . desc . ToString ( ) ;
891
891
shortcut . TargetPath = Assembly . GetEntryAssembly ( ) . Location ;
892
892
shortcut . WorkingDirectory = Directory . GetCurrentDirectory ( ) ;
893
893
shortcut . Save ( ) ;
0 commit comments