From b9d636f40c71fc4fde0e108a9e217c490eda0d2e Mon Sep 17 00:00:00 2001 From: Soreepeong Date: Tue, 3 Oct 2023 16:52:06 +0900 Subject: [PATCH] Fix repair --- .../Patching/IndexedZiPatch/IndexedZiPatchIndex.cs | 2 +- .../IndexedZiPatch/IndexedZiPatchIndexRemoteInstaller.cs | 4 ++++ .../XIVLauncher.PatchInstaller.csproj | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndex.cs b/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndex.cs index 886b3300b..eeb3fbecf 100644 --- a/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndex.cs +++ b/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndex.cs @@ -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)); diff --git a/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndexRemoteInstaller.cs b/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndexRemoteInstaller.cs index 09685f3d0..ca64445da 100644 --- a/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndexRemoteInstaller.cs +++ b/src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndexRemoteInstaller.cs @@ -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 diff --git a/src/XIVLauncher.PatchInstaller/XIVLauncher.PatchInstaller.csproj b/src/XIVLauncher.PatchInstaller/XIVLauncher.PatchInstaller.csproj index 61092751d..4a8ccb8ac 100644 --- a/src/XIVLauncher.PatchInstaller/XIVLauncher.PatchInstaller.csproj +++ b/src/XIVLauncher.PatchInstaller/XIVLauncher.PatchInstaller.csproj @@ -10,7 +10,7 @@ - WinExe + Exe net472 true latest