mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-07 18:15:15 -05:00
Fix localized text fetch
enum order matters
This commit is contained in:
@@ -8,9 +8,6 @@ public enum GameFile
|
||||
/// <summary> Contains the game text that is commonly re-used, not related to the storyline or general overworld content. </summary>
|
||||
GameText,
|
||||
|
||||
/// <summary> Contains the story text that is used to tell the story via overworld events and interactions. </summary>
|
||||
StoryText,
|
||||
|
||||
/// <summary> Localized Game Text for <see cref="GameLanguage.カタカナ"/>. </summary>
|
||||
GameText0,
|
||||
|
||||
@@ -41,6 +38,9 @@ public enum GameFile
|
||||
/// <summary> Localized Game Text for <see cref="GameLanguage.漢字簡化方案"/>. </summary>
|
||||
GameText9,
|
||||
|
||||
/// <summary> Contains the story text that is used to tell the story via overworld events and interactions. </summary>
|
||||
StoryText,
|
||||
|
||||
/// <summary> Localized Story Text for <see cref="GameLanguage.カタカナ"/>. </summary>
|
||||
StoryText0,
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ public class GameFileMapping
|
||||
internal IFileContainer GetFile(GameFile file, int language)
|
||||
{
|
||||
if (file == GameFile.GameText || file == GameFile.StoryText)
|
||||
file += language; // shift to localized language
|
||||
file += language + 1; // shift to localized language
|
||||
|
||||
if (Cache.TryGetValue(file, out var container))
|
||||
return container;
|
||||
|
||||
Reference in New Issue
Block a user