Add quotes to rom path to handle path with spaces

This commit is contained in:
Jorn van de Beek
2013-05-11 01:30:43 +02:00
parent 36bb5806a3
commit 93dde6aaf7
+2 -2
View File
@@ -857,7 +857,7 @@ namespace Vinesauce_ROM_Corruptor
// Attempt to restart.
try
{
Emulator = Process.Start(textBox_EmulatorToRun.Text, textBox_SaveLocation.Text);
Emulator = Process.Start(textBox_EmulatorToRun.Text, "\"" + textBox_SaveLocation.Text + "\"");
}
catch
{
@@ -877,7 +877,7 @@ namespace Vinesauce_ROM_Corruptor
// Its not, just try to start the emulator.
try
{
Emulator = Process.Start(textBox_EmulatorToRun.Text, textBox_SaveLocation.Text);
Emulator = Process.Start(textBox_EmulatorToRun.Text, "\"" + textBox_SaveLocation.Text + "\"");
}
catch
{