mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-09-26 11:29:07 +02:00
Added a few lines for easier debugging of locale loading
This commit is contained in:
parent
ecbbb579b7
commit
eca9e98aef
@ -44,13 +44,18 @@
|
||||
|
||||
Private Shared Sub LoadTokenFile(ByVal path As String, ByVal IsGameModeFile As Boolean)
|
||||
Dim fullpath As String = GameController.GamePath & path
|
||||
Dim tokenFullpath As String = fullpath & "Tokens_" & LanguageSuffix & ".dat"
|
||||
|
||||
Logger.Debug("Token filepath: " & tokenFullpath)
|
||||
|
||||
If System.IO.Directory.GetFiles(fullpath).Count > 0 Then
|
||||
If System.IO.File.Exists(fullpath & "Tokens_" & LanguageSuffix & ".dat") = False Then
|
||||
If System.IO.File.Exists(tokenFullpath) = False Then
|
||||
Logger.Debug("Did NOT find token file for suffix: " & LanguageSuffix)
|
||||
LanguageSuffix = "en"
|
||||
End If
|
||||
|
||||
If System.IO.File.Exists(fullpath & "Tokens_" & LanguageSuffix & ".dat") = True Then
|
||||
If System.IO.File.Exists(tokenFullpath) = True Then
|
||||
Logger.Debug("Found token file for suffix: " & LanguageSuffix)
|
||||
Dim TokensFile() As String = System.IO.File.ReadAllLines(fullpath & "Tokens_" & LanguageSuffix & ".dat")
|
||||
Dim splitIdx As Integer = 0
|
||||
For Each TokenLine As String In TokensFile
|
||||
|
Loading…
x
Reference in New Issue
Block a user