PabloMK7 / citra

A Nintendo 3DS Emulator
GNU General Public License v2.0
3.75k stars 637 forks source link

Configure Citra via command line #94

Open bmsuseluda opened 7 months ago

bmsuseluda commented 7 months ago

Is there an existing issue for this?

What feature are you suggesting?

Hello and thank you for this great emulator,

it would be awesome to configure Citra via command line like other emulators. With this it would be much easier to use Citra with a launcher.

Why would this feature be useful?

With this it would be easier to use Citra with a launcher. I work on my own launcher and would like to auto configure the connected controllers for Citra.

rtiangha commented 7 months ago

Can't it already be run via the command line? The citra.exe (or just citra on Linux, I guess) is already terminal based. It does read off of a config file though and maybe you can't set it via command line, but if you use the gui to generate one, you could then take the generated file and edit it manually and then deploy it to whatever machines you want to run it on.

PS C:\Users\Default\AppData\Local\Citra\nightly> .\citra.exe --help
[   0.003023] Config <Info> citra/config.cpp:LoadINI:46: Successfully loaded C:\Users\Default\AppData\Roaming/Citra/config/sdl2-config.ini
Usage: C:\Users\Default\AppData\Local\Citra\nightly\citra.exe [options] <filename>
-g, --gdbport=NUMBER Enable gdb stub on port NUMBER
-i, --install=FILE    Installs a specified CIA file
-m, --multiplayer=nick:password@address:port Nickname, password, address and port for multiplayer
-r, --movie-record=[file]  Record a movie (game inputs) to the given file
-a, --movie-record-author=AUTHOR Sets the author of the movie to be recorded
-p, --movie-play=[file]    Playback the movie (game inputs) from the given file
-d, --dump-video=[file]    Dumps audio and video to the given video file
-f, --fullscreen     Start in fullscreen mode
-h, --help           Display this help and exit
-v, --version        Output version information and exit
[   0.003023] Config <Info> citra/config.cpp:LoadINI:46: Successfully loaded C:\Users\Default.DESKTOP-JBCRINS\AppData\Roaming/Citra/config/sdl2-config.ini

Edit: Ah, but you probably knew this already. Maybe you could find a way to mod the config file via command line too?