mirror of
https://github.com/Prof9/WfcReplay.git
synced 2026-04-24 23:07:55 -05:00
Path to ARM9 binary passed to blz.exe is now quoted. Fixes #8.
This commit is contained in:
parent
83c15e48ad
commit
6c3f2b4cec
|
|
@ -164,6 +164,7 @@ namespace WfcReplay
|
|||
|
||||
// Get arm9
|
||||
MemoryStream arm9 = getArm9(romReader);
|
||||
arm9.Position = 0;
|
||||
decryptBlz(ref arm9, arm9Name);
|
||||
BinaryReader arm9Reader = new BinaryReader(arm9);
|
||||
|
||||
|
|
@ -314,10 +315,15 @@ namespace WfcReplay
|
|||
{
|
||||
writeTempFile(fileName, file);
|
||||
|
||||
ProcessStartInfo psi = new ProcessStartInfo("blz.exe", "-d " + tempFolderPath + fileName);
|
||||
ProcessStartInfo psi = new ProcessStartInfo("blz.exe", "-d " + "\"" + tempFolderPath + fileName + "\"");
|
||||
psi.WorkingDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
psi.WindowStyle = ProcessWindowStyle.Hidden;
|
||||
Process.Start(psi).WaitForExit();
|
||||
Process blz = Process.Start(psi);
|
||||
blz.WaitForExit();
|
||||
if (blz.ExitCode != 0)
|
||||
{
|
||||
throw new Exception("BLZ decompression failed.");
|
||||
}
|
||||
|
||||
file = readTempFile(fileName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user