Command line parameters

Launching game from command-line/batch
Flycast supports loading games through drag-and-dropping over the .exe file, using an batch file or through the command-line. For example, if you have an Marvel VS. Capcom 2 ROM at the root Flycast folder and you have an flycast.exe file, if you type  on the command-line, flycast should open with Marvel VS Capcom 2 booting; as long as you have the NAOMI BIOS installed. Essentially, by putting the flycast's executable filename alongside the name of the ROM file, relative path OR the full path, flycast should load it. Note that if the filename or file path has spaces, you should enclose it in quotes. Here's some examples:
 * (flycast.exe + filename; on Windows you can just use the exe filename and will still run)
 * (flycast.exe + path to game inside root folder; note that game path is enclosed in quotes)
 * (flycast.exe + FULL path to game; absurdly long in this case but it also works; note that game path is enclosed in quotes)
 * (FULL path for flycast.exe + path to game, which in this example is in C:\ root; note that game path is enclosed in quotes)
 * (FULL path for flycast.exe + path to game, which in this example is in C:\ root; note that game path ISN'T enclosed in quotes because there are no spaces in either path, but it is valid to enclose in quotes as shown in the previous example)

In any case, you should enclose the paths in quotes (if you need to, either relative or path) if the path contains any folder or the filename of the game has spaces on it; and if you are trying to load something through command-line but doesn't work, enclose the paths anyways even if it doesn't seem to have spaces.

Using settings through command-line parameters
You can pass settings to flycast through parameters, in order to make the emulator use them when loading through command-line or batch; these are temporal and are not saved when the emulator is closed (with some very few exceptions; and modifying settings through the emu after using these will still save changes). The parameters used are actually taken from the emu.cfg possible settings themselves, with the template being `-config section:key=value`; section being the section where the setting/key is located (in the lists above, the section name for each one is enclosed in brackets), the key is the setting/option to be changed, and the value is the value you would use for said setting.

For example, using  will make flycast open with the screen rotated 90º; the section here would be , the key/option would be `rend.Rotate90` which is under the aforementioned. These can be used as well when loading an game through command line (the parameters must be specified before the game filename/filepath), and more than 1 can be used at a time, which can be done by placing another  with the wanted parameters in front of the first one, and so on.

Another example could be, if we wanted to load Capcom VS SNK Pro NAOMI from an folder, in fullscreen and with Widescreen hack enabled enabled, we would use, and the structure is like the following:
 * , which is used to set WideScreen hack enabled
 * , which is used to open the emulator in fullscreen regardless of if that option was set previously or not
 * , which is an full path to the ROM for Capcom VS SNK Pro (in this case, it could also be passed WITHOUT quotes since there's no spaces anywhere in the path)
 * , which is an full path to the ROM for Capcom VS SNK Pro (in this case, it could also be passed WITHOUT quotes since there's no spaces anywhere in the path)