private void startGame()
{
string rom = @"ROMFILES\Sega Genesis\" + lsbRoms.Text + ".zip";
string emulator = @"EMULATOR\Sega Genesis\retroarch.exe";
string commandline = string.Format("-L {0} {1}", @"EMULATOR\Sega Genesis\cores\genesis_plus_gx_libretro.dll");
if (!File.Exists(emulator))
{
MessageBox.Show("Emulator is required to continue.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Process.Start(emulator, "\"" + commandline + rom);
}
}
private void startGame()
{
string rom = @"ROMFILES\Sega Genesis\" + lsbRoms.Text + ".zip";
string emulator = @"EMULATOR\Sega Genesis\retroarch.exe";
string commandline = string.Format("-L {0} {1}", @"EMULATOR\Sega Genesis\cores\genesis_plus_gx_libretro.dll");
if (!File.Exists(emulator))
{
MessageBox.Show("Emulator is required to continue.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Process.Start(emulator, "\"" + commandline + rom);
}
}