mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Can't get mono to work nicely with 7za.exe
This commit is contained in:
@@ -130,11 +130,11 @@ namespace SabreTools
|
||||
|
||||
// Set 7za required variables
|
||||
_isMono = (Type.GetType("Mono.Runtime") != null);
|
||||
_7zPath = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "7z" + (Environment.Is64BitOperatingSystem && !_isMono ? Path.DirectorySeparatorChar + "x64" : "") + Path.DirectorySeparatorChar;
|
||||
_7zPath = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "7z" + (Environment.Is64BitOperatingSystem ? Path.DirectorySeparatorChar + "x64" : "") + Path.DirectorySeparatorChar;
|
||||
_psi = new ProcessStartInfo
|
||||
{
|
||||
Arguments = "",
|
||||
FileName = (_isMono ? "mono" : _7zPath + "7za.exe"),
|
||||
FileName = (_isMono ? "7za" : _7zPath + "7za.exe"),
|
||||
//FileName = (Build.MonoEnvironment ? "mono" : SevenZipPath + "7za.exe"),
|
||||
RedirectStandardError = true,
|
||||
RedirectStandardOutput = true,
|
||||
@@ -150,7 +150,7 @@ namespace SabreTools
|
||||
// Set local paths and vars
|
||||
_tempDir = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "temp" + DateTime.Now.ToString("yyyyMMddHHmmss") + Path.DirectorySeparatorChar;
|
||||
_basePath = (File.Exists(path) ? path : path + Path.DirectorySeparatorChar);
|
||||
_baseExtract = (_isMono ? _7zPath + "7za.exe " : "") + "x -o\"" + _tempDir + "\"";
|
||||
_baseExtract = "x -o\"" + _tempDir + "\"";
|
||||
//_baseExtract = (Build.MonoEnvironment ? SevenZipPath + "7za.exe " : "") + "x -o\"" + _tempDir + "\"";
|
||||
|
||||
// This is where the main loop would go
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace SabreTools.Helper
|
||||
{
|
||||
get
|
||||
{
|
||||
return Environment.CurrentDirectory + Path.DirectorySeparatorChar + (!MonoEnvironment && Environment.Is64BitOperatingSystem ? "x64" : "x86") + Path.DirectorySeparatorChar;
|
||||
return Environment.CurrentDirectory + Path.DirectorySeparatorChar + (Environment.Is64BitOperatingSystem ? "x64" : "x86") + Path.DirectorySeparatorChar;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user