I'm using the .Start process to run an emulator and a command line for the emulator to open the game, but when I run it, it opens the emulator but without the command line and the game that is selected in a listbox, would anyone have any ideas for this command line.
Command Line arguments: -L "cores\genesis_plus_gx_libretro.dll"
private void StartGame()
{
string rom = @"ROMFILES\" + RomfilesList.Text.ToString() + ".zip".ToString();
string emulator = @"EMULATOR\retroarch.exe";
string commandline = @"-L cores\genesis_plus_gx_libretro.dll" + rom;
if (!File.Exists(emulator))
{
MessageBox.Show("Emulator is required to continue.", "ERROR", MessageBoxButtons.OK,MessageBoxIcon.Error);
}
if (File.Exists(emulator))
{
Process.Start(emulator, "\"" + commandline);
}
}