Jump to content
LaunchBox Community Forums

Start Retroarch with Change screen resolution for CRT


archimage

Recommended Posts

Hello,

I have managed to start Retroarch on my secondary 15khz CRT monitor with a specific CFG file, but I also would like to switch the resolution of the monitor according to the emulator I want to launch automatically.

I have managed to find the command I want to change the resolution :

ChangeScreenResolution.exe /w=256 /h=240 /f=60 /b=32 /d=4

Then I created a batch file with these :

ChangeScreenResolution.exe /w=256 /h=240 /f=60 /b=32 /d=4
Retroarch.exe --config o:\emu\retroarch\config\224p.cfg

But I don't know how to make Launchbox launch a specific rom with this batch file.

Can somebody help please ?

Best regards

Edited by archimage
Link to comment
Share on other sites

Not sure if it would work in this specific case or not but in the past when using a batch file to launch games like for example using SSF for the Saturn and mounting CDs you would set the batch file itself as an emulator and have your games use that "batch file emulator".

Like I said though I am not sure if this will work in your specific case or not but it is worth a try.

Link to comment
Share on other sites

I take Snes and mario.zip as example, and here's my .bat file :

ChangeScreenResolution.exe /w=256 /h=240 /f=60 /b=32 /d=4
Retroarch.exe

How can I tell this .bat file to include the game path mario.zip and the --config arguments stored in launchbox in the process ?

Link to comment
Share on other sites

It would depend on the emulator and how it works that will determine the actual bat file would look. I am no bat file expert so hopefully someone much better at them will pop in and see this but here is the bat file I used for mounting Saturn games for SSF:

@echo off
set game=%1%
set daemon="C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe"
set emu="H:\Emulation\Emulators\SSF\SSF.exe"

%daemon% -mount 0, %game%
start /wait "" %emu%

%daemon% -unmount 0 

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.

Guest
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...