Skip to content

Commit f6a17ad

Browse files
committed
Handle missing game executable
1 parent 58f94a8 commit f6a17ad

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

src/GHOSTbackup/GHOSTbackup.Localization/Strings.Designer.vb

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GHOSTbackup/GHOSTbackup.Localization/Strings.it.resx

+6
Original file line numberDiff line numberDiff line change
@@ -547,4 +547,10 @@
547547
<data name="ui_manage_context_delete_tooltip" xml:space="preserve">
548548
<value>Elimina il backup selezionato.</value>
549549
</data>
550+
<data name="msgbox_wildlands_installed_missing" xml:space="preserve">
551+
<value>{\rtf1 Wildlands sembra essere installato ma {\b l'eseguibile è mancante}. Il download potrebbe essere incompleto oppure è stato eliminato.}</value>
552+
</data>
553+
<data name="msgbox_wildlands_installed_missing_title" xml:space="preserve">
554+
<value>Impossibile avviare Wildlands</value>
555+
</data>
550556
</root>

src/GHOSTbackup/GHOSTbackup.Localization/Strings.resx

+7
Original file line numberDiff line numberDiff line change
@@ -566,4 +566,11 @@
566566
<data name="ui_manage_context_restore_tooltip" xml:space="preserve">
567567
<value>Restore the selected backup.</value>
568568
</data>
569+
<data name="msgbox_wildlands_installed_missing" xml:space="preserve">
570+
<value>{\rtf1 Wildlands appears to be installed but {\b the executable is missing}. Either the download is incomplete or it has been deleted.}</value>
571+
<comment>This string MUST be written in Rich Text Format</comment>
572+
</data>
573+
<data name="msgbox_wildlands_installed_missing_title" xml:space="preserve">
574+
<value>Unable to launch Wildlands</value>
575+
</data>
569576
</root>

src/GHOSTbackup/GHOSTbackup.UI/Form1.vb

+6-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,12 @@ Public Class Form1
221221
End Sub
222222

223223
Private Sub PlayGameBtn_Click(sender As Object, e As EventArgs) Handles PlayGameBtn.Click
224-
Process.Start(GamePath & "GRW.exe")
224+
Try
225+
Process.Start(GamePath & "GRW.exe")
226+
Catch ex As Exception
227+
Logger.Log("[ERROR] Unable to launch Wildlands: Executable missing.")
228+
CustomMsgBox.Show(Localization.GetString("msgbox_wildlands_installed_missing"), Localization.GetString("msgbox_wildlands_installed_missing_title"), CustomMsgBoxButtons.OKCancel, CustomMsgBoxIcon.Error)
229+
End Try
225230
End Sub
226231

227232
Private Sub SidemenuTasks_Click(sender As Object, e As EventArgs) Handles SidemenuTasks.Click

0 commit comments

Comments
 (0)