Skip to content

Commit fdea412

Browse files
committed
Comment out the translation font override hack
1 parent f88b59a commit fdea412

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

src/TSMapEditor/Rendering/GameClass.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,21 @@ protected override void Initialize()
132132
AssetLoader.AssetSearchPaths.Add(Path.Combine(Environment.CurrentDirectory, "Config", "Translations", TranslatorSetup.ActiveTranslationDirectory()));
133133
AssetLoader.AssetSearchPaths.Add(Environment.CurrentDirectory + DSC + "Content" + DSC);
134134

135-
// Hack: allow translations to override fonts
136-
int i = 0;
137-
while (true)
138-
{
139-
string spriteFontPath = Path.Combine("Translations", TranslatorSetup.ActiveTranslationDirectory(), "SpriteFont" + i + ".xnb");
140-
if (AssetLoader.AssetExists(Path.Combine(Environment.CurrentDirectory, "Config", spriteFontPath)))
141-
{
142-
var spriteFont = Content.Load<SpriteFont>(spriteFontPath);
143-
Renderer.GetFontList()[i] = spriteFont;
144-
}
145-
else
146-
{
147-
break;
148-
}
149-
}
135+
// // Hack: allow translations to override fonts
136+
// int i = 0;
137+
// while (true)
138+
// {
139+
// string spriteFontPath = Path.Combine("Translations", TranslatorSetup.ActiveTranslationDirectory(), "SpriteFont" + i + ".xnb");
140+
// if (AssetLoader.AssetExists(Path.Combine(Environment.CurrentDirectory, "Config", spriteFontPath)))
141+
// {
142+
// var spriteFont = Content.Load<SpriteFont>(spriteFontPath);
143+
// Renderer.GetFontList()[i] = spriteFont;
144+
// }
145+
// else
146+
// {
147+
// break;
148+
// }
149+
// }
150150

151151
windowManager = new WindowManager(this, graphics);
152152
windowManager.Initialize(Content, Environment.CurrentDirectory + DSC + "Content" + DSC);

0 commit comments

Comments
 (0)