mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Enable Lumina GameData StreamPool (#1783)
This commit is contained in:
parent
7280744def
commit
8a516ff6bc
1 changed files with 5 additions and 9 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
|
|
@ -52,15 +51,12 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager
|
||||||
DefaultExcelLanguage = this.Language.ToLumina(),
|
DefaultExcelLanguage = this.Language.ToLumina(),
|
||||||
};
|
};
|
||||||
|
|
||||||
var processModule = Process.GetCurrentProcess().MainModule;
|
this.GameData = new(
|
||||||
if (processModule != null)
|
Path.Combine(Path.GetDirectoryName(Environment.ProcessPath)!, "sqpack"),
|
||||||
|
luminaOptions)
|
||||||
{
|
{
|
||||||
this.GameData = new GameData(Path.Combine(Path.GetDirectoryName(processModule.FileName)!, "sqpack"), luminaOptions);
|
StreamPool = new(),
|
||||||
}
|
};
|
||||||
else
|
|
||||||
{
|
|
||||||
throw new Exception("Could not main module.");
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.Information("Lumina is ready: {0}", this.GameData.DataPath);
|
Log.Information("Lumina is ready: {0}", this.GameData.DataPath);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue