ES game-start script question
2 posters
Page 1 of 1
ES game-start script question
Hi,
if i start a script at game-start, is it possible to read the rom-name or rom-filename into a var in my script?
Im looking for a possibility to use a second display as marquee on my arcade.
Otherwise a will have to add an additional command or script in every <command> tag in the es_systems.cfg to get the %rom% var.
regards.
if i start a script at game-start, is it possible to read the rom-name or rom-filename into a var in my script?
Im looking for a possibility to use a second display as marquee on my arcade.
Otherwise a will have to add an additional command or script in every <command> tag in the es_systems.cfg to get the %rom% var.
regards.
Last edited by flynt on 29/08/20, 12:16 am; edited 2 times in total
flynt- Messages : 24
Date d'inscription : 2020-08-23
Re: ES game-start script question
Hello
In your script :
%1 variable is to get the full path to the rom file
%2 variable is to get the name without extension of the rom
In your script :
%1 variable is to get the full path to the rom file
%2 variable is to get the name without extension of the rom
Re: ES game-start script question
Sounds great.. thank you.
flynt- Messages : 24
Date d'inscription : 2020-08-23
Re: ES game-start script question
Maybe i found a small problem with the two variables. Roms with spaces in the filename are cutted at the first space.
flynt- Messages : 24
Date d'inscription : 2020-08-23
Re: ES game-start script question
It seems that you're right...
It's been a while I haven't tested scripts features in ES. I was sure that we could get full path with these variables, maybe in previous versions of ES but it's not the same branch than the current one. With %4 I get the fullname of the rom but without the extension.
This need further investigation...
It's been a while I haven't tested scripts features in ES. I was sure that we could get full path with these variables, maybe in previous versions of ES but it's not the same branch than the current one. With %4 I get the fullname of the rom but without the extension.
This need further investigation...
Similar topics
» [5.1.1] Bug pour script "game-start"
» [RESOLVED] 3ds game doesn't start, only Citra game list. NDS Desmume no full screen.
» Create a per-game script
» game-start scripts for one game only
» Running a script before a specific game starts
» [RESOLVED] 3ds game doesn't start, only Citra game list. NDS Desmume no full screen.
» Create a per-game script
» game-start scripts for one game only
» Running a script before a specific game starts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum