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
+