Page 1 of 1
AutoIt Sega Genesis + 32X + CD posible?
Posted: Fri Oct 25, 2013 7:21 pm
by PP-Arcade
Hi, I was wondering if the Sega-CD can be in the Sega Genesis + 32X list.
I was looking in the Systems.xml, and I see the command.
Code: Select all
<Cmd id="0" name="KEGA Fusion" value=""%path\%file%ext" -gen -auto -fullscreen" />
And for Sega CD its :
Code: Select all
<Cmd id="0" name="KEGA Fusion" value=""%path\%file%ext" -scd -auto -fullscreen" />
The -gen and -scd need to be a variable, so with an AutoIt script it looks at the file name (put (CD) at end of the game name) and than it fills in -gen or -scd in the command line.
(lol I don't even know if I'm explaining it right way for a script..)
Can some one please realise this in a AutoIt script? (if its not too mutch work ofcorse..)
So i can launch all Sega Genesis + 32x + CD in one list.
I would realy apriciate this
Thanx, PP
Re: AutoIt Sega Genesis + 32X + CD posible?
Posted: Fri Oct 25, 2013 7:28 pm
by Aeliss
I don't really understant what you want ?
Game for 32x are in zip format.
Game for sega CD are in cue format.
You want a list with all the game on the same list, and a script to load them differently according with the extension ?
You don't want to make 2 different system ?
Re: AutoIt Sega Genesis + 32X + CD posible?
Posted: Fri Oct 25, 2013 9:05 pm
by PP-Arcade
Yes thats what I ment :o
I see the Sega Genesis + all the 32X and CD addons as 1 console.
Re: AutoIt Sega Genesis + 32X + CD posible?
Posted: Fri Oct 25, 2013 10:50 pm
by Aeliss
Code: Select all
;Parsing
Local $count = StringInStr($CmdLineRaw, ".exe", 0 , 1, 1)
local $app = StringLeft ( $CmdLineRaw, $count + 4 )
local $command = StringTrimLeft( $CmdLineRaw, $count + 4 )
if not $command then exit 0
;special parsing to get file
$count = StringInStr($command, '"', 0 , -2)
$file = StringTrimLeft( $command, $count )
$count = StringInStr($file,'"', 0 , 1) - 1
$file = Stringleft( $file, $count )
local $ext = StringRight($file, 3 )
;change system if needed
if StringInStr($ext,"32x") Then
$command = '"' & $file & '" -32x -auto -fullscreen'
elseif StringInStr($file,"cue") Then
$command = '"' & $file & '" -scd -auto -fullscreen'
else
$command = '"' & $file & '" -gen -auto -fullscreen'
endif
Runwait('"' & $app & '" ' & $command )
exit 0
To finish.
This script look for cue>sega cd .32x>32x and FOR ALL OTHER ran as genesis rom, if you want to use with sms rom too, you nned to unzip all your rom and modify the script. eg
Code: Select all
if StringInStr($ext,"32x") Then
$command = '"' & $file & '" -32x -auto -fullscreen'
elseif StringInStr($file,"cue") Then
$command = '"' & $file & '" -scd -auto -fullscreen'
elseif StringInStr($file,"gen") Then
$command = '"' & $file & '" -gen -auto -fullscreen'
else
$command = '"' & $file & '" -sms -auto -fullscreen'
endif
You can keep the command line you prefer in system.xml, the script remake its own command, but don't forget to chnage extensions.
Re: AutoIt Sega Genesis + 32X + CD posible?
Posted: Sat Oct 26, 2013 6:51 am
by PP-Arcade
Thanx man!!
Works great.
Happy with this, PP