mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
Extended the localization system to easily include additional languages in the future
This commit is contained in:
parent
d5ec712d0f
commit
ae34584021
50 changed files with 45079 additions and 24129 deletions
|
|
@ -2,7 +2,7 @@ namespace RHLauncher.RHLauncher.Helper;
|
|||
|
||||
public class Configuration
|
||||
{
|
||||
private static readonly string DefaultIniFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "config.ini");
|
||||
private static readonly string DefaultIniFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config.ini");
|
||||
|
||||
public static readonly Configuration Default = new();
|
||||
|
||||
|
|
@ -34,6 +34,10 @@ public class Configuration
|
|||
//Launcher update endpoints
|
||||
GetLauncherVersion = $"{apiUrl}/launcherApi/launcherUpdater/getLauncherVersion";
|
||||
UpdateLauncherVersion = $"{apiUrl}/launcherApi/launcherUpdater/updateLauncherVersion";
|
||||
|
||||
//Launcher settings
|
||||
string lang = iniFile.ReadValue("Launcher", "Lang");
|
||||
Lang = lang;
|
||||
}
|
||||
|
||||
public string GateXMLUrl { get; set; }
|
||||
|
|
@ -51,5 +55,6 @@ public class Configuration
|
|||
public string GetLauncherVersion { get; set; }
|
||||
public string UpdateLauncherVersion { get; set; }
|
||||
public string DownloadUpdateFileUrl { get; set; }
|
||||
public string Lang { get; set; }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue