Jump to content
LaunchBox Community Forums

Citra (standalone): per-game configuration [Batch File]

Recommended Posts

This isn't an actual plug-in, but a little hack to achieve per-game settings in standalone Citra, which doesn't support the option at the moment.

Tested briefly and it does the trick; the same logic, with minor modifications, could also be used with other emulators that store the settings into individual files in a similar way

How to:

- Create new text file

- Paste the following code

@echo off 
SET ConfigFolder=%APPDATA%\Citra\config
SET ConfigNameDefault=%ConfigFolder%\qt-config.ini
SET ConfigName="%ConfigFolder%\%~n1.ini"
echo %ConfigFolder%
echo %ConfigNameDefault% 
echo %ConfigName%

REM Backup copy
COPY %ConfigNameDefault% %ConfigNameDefault%.bak

IF EXIST %ConfigName% (
  REM Use existing per-game config
  COPY %ConfigName% %ConfigNameDefault%
) ELSE (
  REM Create new per-game config using base INI
  COPY %ConfigNameDefault% %ConfigName%

REM Start emulator and wait for exit
START /WAIT citra-qt.exe %1

REM Config changes while game was running are saved back into per-game INI
COPY %ConfigNameDefault% %ConfigName%
REM Restore original INI
COPY %ConfigNameDefault%.bak %ConfigNameDefault%

- Save the file as 'citra-per-game.bat' in the main Citra folder (where the .EXE is)

- In LaunchBox, create a new emulator as follows


And that's it

Now, for 3DS games where you want to use a custom config, simply switch emulator in Launchbox using this new entry, and upon startup it will create a <ROM filename>.ini within Citra settings folder; every change to the emulation settings done while the ROM is loaded will be saved in this new file (once you close the emulator app) and then loaded back on the next execution

As usual, make a manual backup of your existing settings just to be safe, and use at your own risk


Edited by Antaniserse
better title
Link to comment
Share on other sites

  • Antaniserse changed the title to Citra (standalone): per-game configuration [Batch File]
  • 6 months later...

This is a great solution.  I've been using this for most of my 3DS games and works wonderfully with one exception.  When I try to load up games with custom textures, it doesn't work.  I need to actually remove the custom textures before they'll load up again.  I'm wondering if maybe there's a way around this.  Thanks again for this awesome solution.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...