Magic the magic happen

This commit is contained in:
Raymond Lynch 2021-07-11 16:32:29 -04:00
parent 84769ae5b7
commit 658eedca37
188 changed files with 10329 additions and 3549 deletions

View file

@ -112,6 +112,7 @@ namespace Dalamud
}
this.OnLocalizationChanged?.Invoke(langCode);
try
{
Loc.Setup(this.ReadLocData(langCode), this.assembly);
@ -135,9 +136,10 @@ namespace Dalamud
{
if (this.useEmbedded)
{
var resourceStream =
this.assembly.GetManifestResourceStream($"{this.locResourceDirectory}{this.locResourcePrefix}{langCode}.json");
if (resourceStream == null) return null;
var resourceStream = this.assembly.GetManifestResourceStream($"{this.locResourceDirectory}{this.locResourcePrefix}{langCode}.json");
if (resourceStream == null)
return null;
using var reader = new StreamReader(resourceStream);
return reader.ReadToEnd();
}