AutoIt Sega Genesis + 32X + CD posible?

Get answers to questions about using mGalaxy.
Post Reply
User avatar
PP-Arcade
Member
Member
Posts: 43
Joined: Wed Oct 09, 2013 2:19 pm

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  :D

Thanx, PP
Last edited by PP-Arcade on Fri Oct 25, 2013 9:05 pm, edited 1 time in total.
Aeliss
Hero Member
Hero Member
Posts: 902
Joined: Thu Apr 04, 2013 5:55 pm

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 ?



User avatar
PP-Arcade
Member
Member
Posts: 43
Joined: Wed Oct 09, 2013 2:19 pm

Yes thats what I ment  :o  :D

I see the Sega Genesis + all the 32X and CD addons as 1 console.
Aeliss
Hero Member
Hero Member
Posts: 902
Joined: Thu Apr 04, 2013 5:55 pm

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.
User avatar
PP-Arcade
Member
Member
Posts: 43
Joined: Wed Oct 09, 2013 2:19 pm

Thanx man!!
Works great.  :D

Happy with this, PP

Post Reply