diff --git a/LentiaLauncher.csproj b/LentiaLauncher.csproj
index a2487d9..a88e7c4 100644
--- a/LentiaLauncher.csproj
+++ b/LentiaLauncher.csproj
@@ -7,18 +7,21 @@
enable
LentiaLauncher
./src/resources/icon.ico
- true
+ false
-
+
- $(ProjectDir)wwwroot
- $(OutputPath)root.dat
- 66
+ $([System.IO.Path]::Combine('$(PkgBrikPackager)', 'lib', 'net8.0', 'BrikPackager.dll'))
+ $([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', 'wwwroot'))
+ $([System.IO.Path]::Combine('$(TargetDir)', 'root.dat'))
-
-
-
+
+
+
+
+
+
@@ -26,7 +29,7 @@
-
+
diff --git a/Roots.xml b/Roots.xml
new file mode 100644
index 0000000..9f1dced
--- /dev/null
+++ b/Roots.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/Program.cs b/src/main/Program.cs
index 966e9e7..9944d63 100644
--- a/src/main/Program.cs
+++ b/src/main/Program.cs
@@ -1,4 +1,4 @@
-using AzuresPackager;
+using BrikPackager;
using Lentia.Core.Auth.OAuth2;
using Lentia.Core.Constants;
using Lentia.Core.Game;
@@ -26,8 +26,8 @@ class Program {
}
public static PhotinoWindow CreateLoginWindow() {
- AzuresPackage azp = new AzuresPackage(Path.Combine(__dirname, "root.dat"), 66);
- List entries = azp.ListEntries();
+ BrikPackage bpkg = new BrikPackage(Path.Combine(__dirname, "root.dat"), 66);
+ List entries = bpkg.ListEntries();
var window = new PhotinoWindow()
.SetUseOsDefaultLocation(false)
.SetUseOsDefaultSize(false)
@@ -38,7 +38,7 @@ class Program {
if (uri.Host == "internal") {
string internalPath = uri.AbsolutePath;
contentType = MimeHelper.GetMimeType(uri.AbsolutePath);
- byte[] fileData = azp.GetFileBytes(internalPath.TrimStart('/'));
+ byte[] fileData = bpkg.GetFileBytes(internalPath.TrimStart('/'));
return fileData != null ? new MemoryStream(fileData) : null;
}
contentType = null!;