From a26960cea113759cb0ac7996ec4c024f40bba935 Mon Sep 17 00:00:00 2001 From: Jakob Date: Fri, 6 Jul 2018 19:15:17 +0200 Subject: [PATCH] still working on it --- download-resources/create.bat | 2 ++ h-encore-auto/AutoMode.xaml.cs | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/download-resources/create.bat b/download-resources/create.bat index 7495ca2..e8ea66f 100644 --- a/download-resources/create.bat +++ b/download-resources/create.bat @@ -1,3 +1,5 @@ +cd %~dp0 + ..\psvimg-create -n app -K %1 app PCSG90096/app ..\psvimg-create -n appmeta -K %1 appmeta PCSG90096/appmeta ..\psvimg-create -n license -K %1 license PCSG90096/license diff --git a/h-encore-auto/AutoMode.xaml.cs b/h-encore-auto/AutoMode.xaml.cs index 6eb9536..79446de 100644 --- a/h-encore-auto/AutoMode.xaml.cs +++ b/h-encore-auto/AutoMode.xaml.cs @@ -196,7 +196,11 @@ namespace h_encore_auto private void Grid_MouseDown(object sender, MouseButtonEventArgs e) { - DragMove(); + try + { + DragMove(); + } + catch { } } private void buttonClose_Click(object sender, RoutedEventArgs e) @@ -250,11 +254,13 @@ namespace h_encore_auto startInfo.FileName = "cmd.exe"; startInfo.WorkingDirectory = Ref.tempDir + "h-encore"; - Ref.shortAID = Directory.GetDirectories(Ref.pathQcmaRes + "PSVita\\APP\\")[0]; + Ref.shortAID = new DirectoryInfo(Directory.GetDirectories(Ref.pathQcmaRes + "PSVita\\APP\\")[0]).Name; + MessageBox.Show(Ref.shortAID); Ref.longAID = Util.GetEncKey(Ref.shortAID); + MessageBox.Show(Ref.longAID); - startInfo.Arguments = @"/C create.bat " + Ref.longAID; + startInfo.Arguments = "/C create.bat " + Ref.longAID; process.StartInfo = startInfo; process.Start(); process.WaitForExit();