Fixed bug with localization tokens (description)
When returning to the main menu, the localization tokens were not getting reset to their default values.
This commit is contained in:
parent
a745630c73
commit
80432aea46
|
@ -42,7 +42,7 @@
|
||||||
Logger.Debug("---Reloaded GameMode Tokens---")
|
Logger.Debug("---Reloaded GameMode Tokens---")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Shared Sub LoadTokenFile(ByVal path As String, ByVal IsGameModeFile As Boolean)
|
Public Shared Sub LoadTokenFile(ByVal path As String, ByVal IsGameModeFile As Boolean)
|
||||||
Dim fullpath As String = GameController.GamePath & path
|
Dim fullpath As String = GameController.GamePath & path
|
||||||
Dim tokenFullpath As String = fullpath & "Tokens_" & LanguageSuffix & ".dat"
|
Dim tokenFullpath As String = fullpath & "Tokens_" & LanguageSuffix & ".dat"
|
||||||
|
|
||||||
|
|
|
@ -521,10 +521,8 @@
|
||||||
|
|
||||||
If GameModeManager.GameModeExists(GameMode) = False Then
|
If GameModeManager.GameModeExists(GameMode) = False Then
|
||||||
GameMode = "Kolben"
|
GameMode = "Kolben"
|
||||||
GameModeManager.SetGameModePointer("Kolben")
|
|
||||||
Else
|
|
||||||
GameModeManager.SetGameModePointer(GameMode)
|
|
||||||
End If
|
End If
|
||||||
|
GameModeManager.SetGameModePointer(GameMode)
|
||||||
|
|
||||||
BattleSystem.GameModeAttackLoader.Load()
|
BattleSystem.GameModeAttackLoader.Load()
|
||||||
|
|
||||||
|
|
|
@ -295,6 +295,8 @@
|
||||||
End If
|
End If
|
||||||
Chat.ClearChat()
|
Chat.ClearChat()
|
||||||
ScriptStorage.Clear()
|
ScriptStorage.Clear()
|
||||||
|
GameModeManager.SetGameModePointer("Kolben")
|
||||||
|
Localization.LoadTokenFile(GameModeManager.ActiveGameMode.LocalizationsPath, False)
|
||||||
Core.SetScreen(New PressStartScreen())
|
Core.SetScreen(New PressStartScreen())
|
||||||
Core.Player.loadedSave = False
|
Core.Player.loadedSave = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
Loading…
Reference in New Issue