Fixed issues
This commit is contained in:
parent
bedf8cc93e
commit
4ead6bca86
5 changed files with 10 additions and 27 deletions
|
@ -31,7 +31,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ryujinx.Graphics.Texture",
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ryujinx.Graphics.Shader", "Ryujinx.Graphics.Shader\Ryujinx.Graphics.Shader.csproj", "{03B955CD-AD84-4B93-AAA7-BF17923BBAA5}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ryujinx.Graphics.Shader", "Ryujinx.Graphics.Shader\Ryujinx.Graphics.Shader.csproj", "{03B955CD-AD84-4B93-AAA7-BF17923BBAA5}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ryujinx.Graphics.Nvdec", "Ryujinx.Graphics.Nvdec\Ryujinx.Graphics.Nvdec.csproj", "{85A0FA56-DC01-4A42-8808-70DAC76BD66D}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ryujinx.Graphics.Nvdec", "Ryujinx.Graphics.Nvdec\Ryujinx.Graphics.Nvdec.csproj", "{85A0FA56-DC01-4A42-8808-70DAC76BD66D}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ryujinx.Debugger", "Ryujinx.Debugger\Ryujinx.Debugger.csproj", "{79E4EE34-9C5F-4BE6-8529-A49D32B5B0CC}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ryujinx.Debugger", "Ryujinx.Debugger\Ryujinx.Debugger.csproj", "{79E4EE34-9C5F-4BE6-8529-A49D32B5B0CC}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|
|
@ -64,7 +64,7 @@ namespace Ryujinx
|
||||||
MainWindow mainWindow = new MainWindow();
|
MainWindow mainWindow = new MainWindow();
|
||||||
mainWindow.Show();
|
mainWindow.Show();
|
||||||
|
|
||||||
if (args.Length > 0)
|
if (args.Length == 1)
|
||||||
{
|
{
|
||||||
foreach (string arg in args)
|
foreach (string arg in args)
|
||||||
{
|
{
|
||||||
|
|
|
@ -897,17 +897,6 @@ namespace Ryujinx.Ui
|
||||||
private void Update_Pressed(object sender, EventArgs args)
|
private void Update_Pressed(object sender, EventArgs args)
|
||||||
{
|
{
|
||||||
Ryujinx.Updater.Parser.UpdateParser.BeginParse();
|
Ryujinx.Updater.Parser.UpdateParser.BeginParse();
|
||||||
return;
|
|
||||||
//string ryuUpdater = System.IO.Path.Combine(new VirtualFileSystem().GetBasePath(), "RyuUpdater.exe");
|
|
||||||
|
|
||||||
//try
|
|
||||||
//{
|
|
||||||
// Process.Start(new ProcessStartInfo(ryuUpdater, "/U") { UseShellExecute = true });
|
|
||||||
//}
|
|
||||||
//catch(System.ComponentModel.Win32Exception)
|
|
||||||
//{
|
|
||||||
// GtkDialog.CreateErrorDialog("Update canceled by user or updater was not found");
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void About_Pressed(object sender, EventArgs args)
|
private void About_Pressed(object sender, EventArgs args)
|
||||||
|
|
|
@ -14,6 +14,7 @@ using System.Net;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using ZipFile = System.IO.Compression.ZipFile;
|
||||||
|
|
||||||
namespace Ryujinx.Updater.Parser
|
namespace Ryujinx.Updater.Parser
|
||||||
{
|
{
|
||||||
|
@ -139,11 +140,7 @@ namespace Ryujinx.Updater.Parser
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//Begin the extaction process
|
//Begin the extaction process
|
||||||
using (Ionic.Zip.ZipFile Package = Ionic.Zip.ZipFile.Read(Path.Combine(RyuDir, "Data", "Update", "RyujinxPackage.zip")))
|
await Task.Run(() => ZipFile.ExtractToDirectory(Path.Combine(RyuDir, "Data", "Update", "RyujinxPackage.zip"), Path.Combine(Environment.CurrentDirectory, "temp")));
|
||||||
{
|
|
||||||
await Task.Run(() => Package.ExtractAll(Path.Combine(Environment.CurrentDirectory,"temp"), ExtractExistingFileAction.OverwriteSilently));
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Process.Start(new ProcessStartInfo(Path.Combine(Environment.CurrentDirectory, "temp", "publish", "Ryujinx.exe"), "/U") { UseShellExecute = true });
|
Process.Start(new ProcessStartInfo(Path.Combine(Environment.CurrentDirectory, "temp", "publish", "Ryujinx.exe"), "/U") { UseShellExecute = true });
|
||||||
|
|
|
@ -37,12 +37,10 @@ namespace Ryujinx.Updater
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Application.Quit();
|
Application.Quit();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
catch (System.ComponentModel.Win32Exception)
|
catch (System.ComponentModel.Win32Exception)
|
||||||
{
|
{
|
||||||
GtkDialog.CreateErrorDialog("Package installation has failed\nCheck the log for more information.");
|
GtkDialog.CreateErrorDialog("Package installation has failed\nCheck the log for more information.");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -50,7 +48,6 @@ namespace Ryujinx.Updater
|
||||||
public static void Cleanup()
|
public static void Cleanup()
|
||||||
{
|
{
|
||||||
Directory.Delete(Path.Combine(RyuDir, "temp"), true);
|
Directory.Delete(Path.Combine(RyuDir, "temp"), true);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue