Skip to content

Commit ad5c280

Browse files
committed
Add missing ToString() occurances
1 parent a560567 commit ad5c280

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Universal THCRAP Launcher/MainForm.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ private void StartThcrap()
571571
{
572572
if (patchListBox.SelectedIndex == -1 || gameListBox.SelectedIndex == -1)
573573
{
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);
575575
return;
576576
}
577577

@@ -862,12 +862,12 @@ private void gitHubPageTS_Click(object sender, EventArgs e) =>
862862

863863
private void openConfigureTS_Click(object sender, EventArgs e)
864864
{
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);
867867
var p = Process.Start("thcrap_configure.exe");
868868
if (p == null)
869869
{
870-
MessageBox.Show(I18N.LangResource.errors.oops, I18N.LangResource.errors.error);
870+
MessageBox.Show(I18N.LangResource.errors.oops.ToString(), I18N.LangResource.errors.error.ToString());
871871
return;
872872
}
873873

@@ -885,9 +885,9 @@ private void createShortcutTS_Click(object sender, EventArgs e)
885885
{
886886
var shDesktop = (object)"Desktop";
887887
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";
889889
var shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress);
890-
shortcut.Description = I18N.LangResource.shCreate.desc;
890+
shortcut.Description = I18N.LangResource.shCreate.desc.ToString();
891891
shortcut.TargetPath = Assembly.GetEntryAssembly().Location;
892892
shortcut.WorkingDirectory = Directory.GetCurrentDirectory();
893893
shortcut.Save();

0 commit comments

Comments
 (0)