1
General / [Help]Need help with retroarch command line C#
« on: February 16, 2023, 02:22:05 PM »
I'm trying to start games in the retroarch emulator from command lines for retroarch but it's not working out very well, I think the problem is in the command line that calls the core. I can even open the emulator but it doesn't load the core or the game, if anyone can help me I would be grateful. Below is the code I'm trying to make work.

Code: [Select]
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);
}
}

