mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
Magic the magic happen
This commit is contained in:
parent
84769ae5b7
commit
658eedca37
188 changed files with 10329 additions and 3549 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue