Don't run mono from local directory

This commit is contained in:
Matt Nadareski
2016-04-12 14:46:39 -07:00
parent f9d47a2e18
commit bdb83ce1c5

View File

@@ -137,7 +137,7 @@ namespace SabreTools
_psi = new ProcessStartInfo _psi = new ProcessStartInfo
{ {
Arguments = "", Arguments = "",
FileName = _7zPath + (_isMono ? "mono" : "7za.exe"), FileName = (_isMono ? "mono" : _7zPath + "7za.exe"),
RedirectStandardError = true, RedirectStandardError = true,
RedirectStandardOutput = true, RedirectStandardOutput = true,
UseShellExecute = false, UseShellExecute = false,
@@ -152,7 +152,7 @@ namespace SabreTools
// Set local paths and vars // Set local paths and vars
_tempDir = Environment.CurrentDirectory + _delim + "temp" + DateTime.Now.ToString("yyyyMMddHHmmss") + _delim; _tempDir = Environment.CurrentDirectory + _delim + "temp" + DateTime.Now.ToString("yyyyMMddHHmmss") + _delim;
_basePath = (args.Length == 0 ? Environment.CurrentDirectory + _delim : (File.Exists(path) ? path : path + _delim)); _basePath = (args.Length == 0 ? Environment.CurrentDirectory + _delim : (File.Exists(path) ? path : path + _delim));
_baseExtract = (_isMono ? "7za.exe " : "") + "x -o\"" + _tempDir + "\""; _baseExtract = (_isMono ? _7zPath + "7za.exe " : "") + "x -o\"" + _tempDir + "\"";
// This is where the main loop would go // This is where the main loop would go
if (File.Exists(_basePath)) if (File.Exists(_basePath))