Skip to content

Commit

Permalink
Can now Drag-and-drop into the software executable
Browse files Browse the repository at this point in the history
  • Loading branch information
moisespr123 committed Jan 17, 2019
1 parent 341e5c6 commit 0b45fb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rav1e_gui/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ Public Class Form1
Return True
End Function
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
IO.Directory.SetCurrentDirectory(IO.Path.GetDirectoryName(Process.GetCurrentProcess.MainModule.FileName))
CPUThreads.Maximum = Environment.ProcessorCount
CPUThreads.Value = CPUThreads.Maximum
quantizer.Value = My.Settings.quantizer
Expand Down Expand Up @@ -272,6 +273,10 @@ Public Class Form1
Process.Start("https://moisescardona.me/downloading_ffmpeg_rav1e_gui")
Me.Close()
End If
Dim vars As String() = Environment.GetCommandLineArgs
If vars.Count > 1 Then
InputTxt.Text = vars(1)
End If
GUILoaded = True
End Sub

Expand Down

0 comments on commit 0b45fb6

Please sign in to comment.