Automatically download en_GB.lang from Mojang

- Removed en_US.lang checking since it does not exist anymore in assets
- If Minecraft 1.6+ is not installed, download en_GB.lang from Mojang's
servers
This commit is contained in:
ORelio 2014-01-13 12:38:01 +01:00
parent f6de2e4aee
commit c826dd3b79
2 changed files with 50 additions and 8 deletions

View file

@ -23,8 +23,9 @@ namespace MinecraftClient
public static string SingleCommand = "";
//Other Settings
public static string TranslationsFile_FromMCDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\.minecraft\assets\virtual\legacy\lang\en_US.lang";
public static string TranslationsFile_FromMCDir_Alt = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\.minecraft\assets\virtual\legacy\lang\en_GB.lang";
public static string TranslationsFile_FromMCDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\.minecraft\assets\virtual\legacy\lang\en_GB.lang";
public static string TranslationsFile_Website_Index = "https://s3.amazonaws.com/Minecraft.Download/indexes/1.7.4.json";
public static string TranslationsFile_Website_Download = "http://resources.download.minecraft.net";
public static string TranslationsFile = "translations.lang";
public static string Bots_OwnersFile = "bot-owners.txt";