private void StartGame(){ string rom = @"ROMFILES\" + RomfilesList.Text + ".zip"; string emulator = @"EMULATOR\retroarch.exe"; string commandline = @"-L EMULATOR\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); }}
Shouldn't there be a space between commandline and rom when you build the command line to execute? Also no need to put the full core path after -L, the mnemonic name of the core is enough, like -L genesis_plus_gx
private void StartGame() { string rom = @"ROMFILES\" + RomfilesList.Text + ".zip"; string emulator = @"EMULATOR\retroarch.exe"; string commandline = "-L genesis_plus_gx_libretro.dll" + " " + rom ; if (!File.Exists(emulator)) { MessageBox.Show("Emulator is required to continue.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { Process.Start(emulator, "\"" + commandline); } }