From 6d70d95e2aed182b1d4a156eedff8575d3052517 Mon Sep 17 00:00:00 2001 From: bjoern Date: Sat, 25 Apr 2015 16:33:58 +0200 Subject: [PATCH] * removed Poost build steps because they are not cross platform * changed invokation of blz binary to work on mono --- WfcReplay/Program.cs | 6 +++--- WfcReplay/WfcReplay.csproj | 8 +------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/WfcReplay/Program.cs b/WfcReplay/Program.cs index e5ad372..9222370 100644 --- a/WfcReplay/Program.cs +++ b/WfcReplay/Program.cs @@ -131,7 +131,7 @@ namespace WfcReplay } catch { - throw new IOException("Could not write file to disk."); + throw new IOException("Could not write file to disk ("+fileName+")."); } finally { @@ -380,8 +380,8 @@ namespace WfcReplay void decryptBlz(ref MemoryStream file, string fileName) { writeTempFile(fileName, file); - - ProcessStartInfo psi = new ProcessStartInfo("blz.exe", "-d " + "\"" + tempFolderPath + fileName + "\""); + string blzexe = (System.IO.Path.DirectorySeparatorChar == '/') ? "blz" : "blz.exe"; + ProcessStartInfo psi = new ProcessStartInfo(blzexe, "-d " + "\"" + tempFolderPath + fileName + "\""); psi.WorkingDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); psi.WindowStyle = ProcessWindowStyle.Hidden; Process blz = Process.Start(psi); diff --git a/WfcReplay/WfcReplay.csproj b/WfcReplay/WfcReplay.csproj index 663a446..a997853 100644 --- a/WfcReplay/WfcReplay.csproj +++ b/WfcReplay/WfcReplay.csproj @@ -48,12 +48,6 @@ - if "$(ConfigurationName)" == "Release" del /Q $(TargetDir)* -copy $(SolutionDir)BLZ\* $(TargetDir)* -rename $(TargetDir)license.txt blz_license.txt -copy $(SolutionDir)readme.md $(TargetDir)readme.txt -copy $(SolutionDir)changelog.md $(TargetDir)changelog.txt -copy $(SolutionDir)license.txt $(TargetDir)license.txt - \ No newline at end of file +