Skip to content

Commit

Permalink
Merge pull request #1388 from Soreepeong/fix/ziiiiiiipatch
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats authored Oct 3, 2023
2 parents e7a8af1 + b9d636f commit 021d733
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public IndexedZiPatchIndex(BinaryReader reader, bool disposeReader = true)
for (int i = 0, readIndex = reader.ReadInt32(); i < readIndex; i++)
this.sourceFiles.Add(reader.ReadString());
foreach (var _ in this.sourceFiles)
this.sourceFileLastPtr.Add(reader.ReadInt32());
this.sourceFileLastPtr.Add(reader.ReadInt64());

for (int i = 0, readIndex = reader.ReadInt32(); i < readIndex; i++)
this.targetFiles.Add(new IndexedZiPatchTargetFile(reader, false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public IndexedZiPatchIndexRemoteInstaller(string workerExecutablePath, bool asAd
this.workerProcess.StartInfo.UseShellExecute = true;
this.workerProcess.StartInfo.Verb = asAdmin ? "runas" : "open";
this.workerProcess.StartInfo.Arguments = $"index-rpc {Process.GetCurrentProcess().Id} {rpcChannelName}";
#if !DEBUG
this.workerProcess.StartInfo.CreateNoWindow = true;
this.workerProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
#endif
this.workerProcess.Start();
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
<UseWPF>true</UseWPF>
<LangVersion>latest</LangVersion>
Expand Down

0 comments on commit 021d733

Please sign in to comment.