Skip to content

Commit

Permalink
I hate you windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fuomag9 committed Jan 20, 2019
1 parent 0c52cb0 commit e709452
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
Binary file modified Installer/Installer-SetupFiles/Installer.msi
Binary file not shown.
Binary file modified Installer/Installer-cache/cacheIndex.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions Installer/Installer.aip
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<ROW Property="ARPCOMMENTS" Value="This installer database contains the logic and data required to install [|ProductName]." ValueLocId="*"/>
<ROW Property="CTRLS" Value="2"/>
<ROW Property="Manufacturer" Value="fuomag9"/>
<ROW Property="ProductCode" Value="1033:{D2B74CDC-555C-4F15-A2A1-A32395AECC77} " Type="16"/>
<ROW Property="ProductCode" Value="1033:{C59B6DAE-89D9-424A-BBFA-BFF5119C51A0} " Type="16"/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="Video2x"/>
<ROW Property="ProductVersion" Value="1.0.0" Type="32"/>
<ROW Property="ProductVersion" Value="1.0.5" Type="32"/>
<ROW Property="RUNAPPLICATION" Value="1" Type="4"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
<ROW Property="UpgradeCode" Value="{5F4E7CB6-CD9E-42A3-A079-DA074FBD62B8}"/>
Expand Down
2 changes: 1 addition & 1 deletion Video2x/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Video2x"
mc:Ignorable="d"
Title="Video2x 1.0" Height="450" Width="800">
Title="Video2x 1.0.5" Height="450" Width="800">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="455*"/>
Expand Down
9 changes: 6 additions & 3 deletions Video2x/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private async void Button_enhance_Click(object sender, RoutedEventArgs e)
//just because threads hates me :(
string input_file = textbox_folder.Text;

await Task.Run(() => Esegui_console(temp_dir, "ffmpeg -i " + input_file + " -vsync 0 img-%d.png", debug));
await Task.Run(() => Esegui_console(temp_dir, "ffmpeg -i " + input_file + " -vsync 0 img-%d.png", debug));

progress_bar.Value++;

Expand All @@ -155,11 +155,14 @@ private async void Button_enhance_Click(object sender, RoutedEventArgs e)
risoluzione = shellProperty_width.Value.ToString() + "x" + shellProperty_height.Value.ToString();


var lista_files = directoryInfo.GetFiles();
Funzioni_utili.DirectoryCopy(System.IO.Path.Combine(System.IO.Path.Combine(application_path, "waifu2x"), "models_rgb"), System.IO.Path.Combine(temp_dir, "models_rgb"));


foreach (FileInfo file in directoryInfo.GetFiles())

foreach (FileInfo file in lista_files)
{
await Task.Run(() => Esegui_console(System.IO.Path.Combine(application_path, "waifu2x"), "waifu2x-converter-cpp.exe -i " + file.Name + " -o " + file.Name, debug));
await Task.Run(() => Esegui_console(temp_dir ,".'"+System.IO.Path.Combine(System.IO.Path.Combine(application_path, "waifu2x"),@".\waifu2x-converter-cpp.exe")+ "' -i " + file.Name + " -o " + file.Name, debug));


}
Expand Down

0 comments on commit e709452

Please sign in to comment.