mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Don't run mono from local directory
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user