kaylh/old-RetroBat-obsolete

[Suggestion] Maybe es_resolution_* vars could auto update at first run?

bleuge opened this issue · 2 comments

I tested this in my Thinkpad, so after some google searching I found where you set up those vars, as I was getting off-screen rendering.

I don't know a thing about powersell, but maybe there is a way to autodetect current active monitor resolution and auto fill them in the emulationstation.cfg file ?
These worked in my x240:

es_resolution_width=1366
es_resolution_height=768

Thanks!

edit: Showing a submenu in setup, offering different valid resolutions for active monitor will be much better :D

retrobat-scripts.zip
Download the attached zip file and put "ini.bat" and "MonitorConfig.cmd" in your /RetroBat/system/scripts folder.
Modify /RetroBat/setup.bat and after line 590, add the 3 following lines:

set scripts_dir=%scripts_path%
set config_dir=%setupdir%\configs
call %scripts_dir%\MonitorConfig.cmd 

Then, launch setup.bat and choose option 5 to update sources.
If you try version 2 beta 1, just add this one line after line 76:
call %scripts_dir%\MonitorConfig.cmd
When you launch setup.bat, the resolution will be automatically updated.
It should do the trick :)

Never thought I could setup a ES+RA so easy in windows, thanks you very much!