mGalaxy forum

Resources => Scripts => Topic started by: davhuit on August 30, 2013, 06:57:21 AM

Title: PC Engine Duo (CD-Rom Version)
Post by: davhuit on August 30, 2013, 06:57:21 AM
About the configuration, it's the same in "Magic Engine" than for the cartridges games, but as "Magic Engine" don't able to load an iso file, you have to use "Deamon Tools Lite" and so, an "AutoIt" script (also required for the "ESC" key trick).

I noticed the script we made a while back with Aeliss wasn't added here so here it is.

Code: (AutoIt) [Select]
HotKeySet("{ESC}", "Terminate")
    $path = "F:\Jeux PC [Downloads]\Emulation\PC Engine CD\"
    $app = "pce.exe"

    If $CmdLine[0] > 0 Then

    RunWait('"C:\Program Files\DAEMON Tools Lite\DTLite.exe" -mount 0,"' & $CmdLine[1] & '"')
        $PID = Run( $path & $app & ' -cd', $path)
        While 1
              Sleep(100)
        WEnd
    EndIf

    Func Terminate()
        While ProcessExists ( $PID )
            ProcessClose ( $PID )
        WEnd
        RunWait('"C:\Program Files\DAEMON Tools Lite\DTLite.exe" -unmount 0')
        Exit 0

    EndFunc

If, like me, your "Deamon Tools Lite" configurated a "scsi" drive, use this version instead :

Code: (AutoIt) [Select]
HotKeySet("{ESC}", "Terminate")
    $path = "F:\Jeux PC [Downloads]\Emulation\PC Engine CD\"
    $app = "pce.exe"

    If $CmdLine[0] > 0 Then

    RunWait('"C:\Program Files\DAEMON Tools Lite\DTLite.exe" -mount scsi, 0,"' & $CmdLine[1] & '"')
        $PID = Run( $path & $app & ' -cd', $path)
        While 1
              Sleep(100)
        WEnd
    EndIf

    Func Terminate()
        While ProcessExists ( $PID )
            ProcessClose ( $PID )
        WEnd
        RunWait('"C:\Program Files\DAEMON Tools Lite\DTLite.exe" -unmount scsi, 0')
        Exit 0

    EndFunc

Change $path, $app and "Deamons Tools Lite" link according to your configuration, is required.

Works perfectly with the dozen of games I tried.

I attached the icon I'm currently using but it would require to be transparent to be added in "mGalaxy" without looking awkward.