Skip to content

Commit

Permalink
update LeagueToolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Crauzer committed Jun 14, 2023
1 parent 4b97b9f commit 8b8bda8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Obsidian/Obsidian.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<OutputType>WinExe</OutputType>
Expand All @@ -14,8 +14,8 @@
<PackageReference Include="CodeBeam.MudExtensions" Version="6.2.7" />
<PackageReference Include="DiscordRichPresence" Version="1.1.3.18" />
<PackageReference Include="FluentValidation" Version="11.5.2" />
<PackageReference Include="LeagueToolkit" Version="4.0.0-beta.27" />
<PackageReference Include="LeagueToolkit.IO.Extensions" Version="4.0.0-beta.27" />
<PackageReference Include="LeagueToolkit" Version="4.0.0-beta.28" />
<PackageReference Include="LeagueToolkit.IO.Extensions" Version="4.0.0-beta.28" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="MudBlazor" Version="6.1.9" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
17 changes: 5 additions & 12 deletions Obsidian/Shared/WadFileTextPreview.razor
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,16 @@

public async Task PreviewRitobin(Stream stream)
{
using MemoryStream textStream = new();
using (RitobinWriter writer =
using RitobinWriter writer =
new(
textStream,
this.Hashtable.BinObjects,
this.Hashtable.BinClasses,
this.Hashtable.BinProperties,
this.Hashtable.BinHashes
))
{
writer.WritePropertyBin(new(stream));
}
this.Hashtable.BinHashes,
this.Hashtable.Hashes
);

textStream.Position = 0;
using StreamReader textReader = new(textStream);

await this._codeEditor.SetValue(textReader.ReadToEnd());
await this._codeEditor.SetValue(writer.WritePropertyBin(new(stream)));
await MonacoEditorGlobal.SetModelLanguage(await this._codeEditor.GetModel(), "ritobin");
}
}

0 comments on commit 8b8bda8

Please sign in to comment.