Author Topic: AutoIt Sega Genesis + 32X + CD posible?  (Read 6432 times)

PP-Arcade

  • Newbie
  • *
  • Posts: 43
Re: AutoIt Sega Genesis + 32X + CD posible?
« Reply #5 on: October 26, 2013, 01:51:19 AM »
Thanx man!!
Works great.  :D

Happy with this, PP


Aeliss

  • Hero Member
  • *****
  • Posts: 900
Re: AutoIt Sega Genesis + 32X + CD posible?
« Reply #4 on: October 25, 2013, 05:50:21 PM »
Code: (autoit) [Select]
;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]
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.

PP-Arcade

  • Newbie
  • *
  • Posts: 43
Re: AutoIt Sega Genesis + 32X + CD posible?
« Reply #3 on: October 25, 2013, 04:05:01 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
  • *****
  • Posts: 900
Re: AutoIt Sega Genesis + 32X + CD posible?
« Reply #2 on: October 25, 2013, 02:28:03 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 ?




PP-Arcade

  • Newbie
  • *
  • Posts: 43
AutoIt Sega Genesis + 32X + CD posible?
« Reply #1 on: October 25, 2013, 02:21:32 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]
<Cmd id="0" name="KEGA Fusion" value="&quot;%path\%file%ext&quot; -gen -auto -fullscreen" />
And for Sega CD its :
Code: [Select]
<Cmd id="0" name="KEGA Fusion" value="&quot;%path\%file%ext&quot; -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 Edit: October 25, 2013, 04:05:40 PM by PP-Arcade »