Restricted backup import functionality for #150

This commit is contained in:
Michael J. Seiferling
2018-09-14 11:46:20 -06:00
parent 333f7ac36a
commit 898e72f163
3 changed files with 19 additions and 3 deletions
+5 -1
View File
@@ -1938,7 +1938,11 @@ Public Class frmGameManager
End Sub End Sub
Private Sub btnImportBackup_Click(sender As Object, e As EventArgs) Handles btnImportBackup.Click Private Sub btnImportBackup_Click(sender As Object, e As EventArgs) Handles btnImportBackup.Click
TriggerSelectedImportBackup() If CurrentGame.AppendTimeStamp Then
TriggerSelectedImportBackup()
Else
mgrCommon.ShowMessage(frmGameManager_WarningImportBackupSaveMulti, MsgBoxStyle.Information)
End If
End Sub End Sub
Private Sub chkFolderSave_CheckedChanged(sender As Object, e As EventArgs) Handles chkFolderSave.CheckedChanged Private Sub chkFolderSave_CheckedChanged(sender As Object, e As EventArgs) Handles chkFolderSave.CheckedChanged
+10 -1
View File
@@ -2446,7 +2446,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to This feature is intended to import 7-Zip backup archives compatible with the selected game configuration.[BR][BR]GBM does NOT verify these files, you should only use files created by GBM or other compatible archives that were created using the same settings as the current game configuration.[BR][BR]This message will only be shown once.. ''' Looks up a localized string similar to This feature is intended to import 7-Zip backup archives compatible with the selected game configuration.[BR][BR]GBM does NOT verify these files, you should only use files created by GBM or compatible archives created using the same settings as the current game configuration.[BR][BR]This message will only be shown once..
'''</summary> '''</summary>
Friend ReadOnly Property frmGameManager_WarningImportBackup() As String Friend ReadOnly Property frmGameManager_WarningImportBackup() As String
Get Get
@@ -2454,6 +2454,15 @@ Namespace My.Resources
End Get End Get
End Property End Property
'''<summary>
''' Looks up a localized string similar to The &quot;Save multiple backups&quot; option must be enabled on this configuration to import backup files..
'''</summary>
Friend ReadOnly Property frmGameManager_WarningImportBackupSaveMulti() As String
Get
Return ResourceManager.GetString("frmGameManager_WarningImportBackupSaveMulti", resourceCulture)
End Get
End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to XML. ''' Looks up a localized string similar to XML.
'''</summary> '''</summary>
+4 -1
View File
@@ -2249,9 +2249,12 @@
<value>Pro&amp;cesses...</value> <value>Pro&amp;cesses...</value>
</data> </data>
<data name="frmGameManager_WarningImportBackup" xml:space="preserve"> <data name="frmGameManager_WarningImportBackup" xml:space="preserve">
<value>This feature is intended to import 7-Zip backup archives compatible with the selected game configuration.[BR][BR]GBM does NOT verify these files, you should only use files created by GBM or other compatible archives that were created using the same settings as the current game configuration.[BR][BR]This message will only be shown once.</value> <value>This feature is intended to import 7-Zip backup archives compatible with the selected game configuration.[BR][BR]GBM does NOT verify these files, you should only use files created by GBM or compatible archives created using the same settings as the current game configuration.[BR][BR]This message will only be shown once.</value>
</data> </data>
<data name="frmVariableManager_ErrorVariableReserved" xml:space="preserve"> <data name="frmVariableManager_ErrorVariableReserved" xml:space="preserve">
<value>[PARAM] is a reserved variable, you must enter a different name.</value> <value>[PARAM] is a reserved variable, you must enter a different name.</value>
</data> </data>
<data name="frmGameManager_WarningImportBackupSaveMulti" xml:space="preserve">
<value>The "Save multiple backups" option must be enabled on this configuration to import backup files.</value>
</data>
</root> </root>