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:
JappaWakka 2022-06-02 16:02:54 +02:00
parent a745630c73
commit 80432aea46
3 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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()

View File

@ -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