Skip to content

Commit 6d87021

Browse files
committed
Restore Webservices mod functionality
1 parent b726c6f commit 6d87021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ZuneModCore/Mods/WebservicesMod.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Task InitAsync(CancellationToken token = default)
126126
public override async Task<string?> Apply()
127127
{
128128
var newHost = ((AbstractTextBox)OptionsUI![0]).Value;
129-
var errorMessage = "hi";// await PatchZuneServices(newHost);
129+
var errorMessage = await PatchZuneServices(newHost);
130130

131131
if (errorMessage is not null)
132132
{
@@ -226,7 +226,7 @@ public Task InitAsync(CancellationToken token = default)
226226
versionInfo.ProductBuildPart, versionInfo.FilePrivatePart);
227227

228228
// Open the file and determine the architecture
229-
using FileStream zsDll = zsDllInfo.OpenRead();
229+
using FileStream zsDll = zsDllInfo.Open(FileMode.Open);
230230

231231
Machine architecture;
232232
using (PEReader peReader = new(zsDll, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata))

0 commit comments

Comments
 (0)