thx for icons. IDK this system existed in black version.
The new version, working up to 2 disc.
Code: Select all
Opt("WinTitleMatchMode", 1)
;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
hotkeyset("{esc}", "Terminate")
;Remove "" from game name
$disk1 = StringTrimLeft ( $command, 1 )
$disk1 = StringTrimRight ( $disk1, 1 )
;try to find a second disk
$disk2 = StringReplace($disk1,"Disk 1", "Disk 2")
$disk2 = StringReplace($disk2,"Disk1", "Disk2")
$disk2 = StringReplace($disk2,"Disc 1", "Disc 2")
$disk2 = StringReplace($disk2,"Disc1", "Disc2")
If FileExists($disk2) then
Iniwrite("xm6g.ini","MRU0","File0", $disk1)
Iniwrite("xm6g.ini","MRU1","File0", $disk2)
Iniwrite("xm6g.ini","Resume","FD", "1")
Iniwrite("xm6g.ini","Resume","FDI0", "1")
Iniwrite("xm6g.ini","Resume","FDI1", "1")
$command = ""
Endif
;load application
local $PID = Run ( '"' & $app & '" ' & $command )
;set fullscreen
Sleep(500)
Send("!{Enter}")
;waiting loop
While ProcessExists ( $PID )
Sleep(500)
WEnd
;exit
exit 0
;*************************************
;functions
Func Terminate()
Winclose("XM6")
Exit 0
EndFunc
But this version work for XM6 type G
http://www.emucr.com/2014/07/xm6-312-l50-typeg-v20140713.html. For other version like this one
http://mijet.eludevisibility.org/XM6%20Pro-68k/XM6%20Pro-68k.html you need to chnage the ini name in the code
Code: Select all
Iniwrite("xm6g.ini","MRU0","File0", $disk1)
Iniwrite("xm6g.ini","MRU1","File0", $disk2)
Iniwrite("xm6g.ini","Resume","FD", "1")
Iniwrite("xm6g.ini","Resume","FDI0", "1")
Iniwrite("xm6g.ini","Resume","FDI1", "1")
xm6g.ini become xm6.ini in other version.
Theses emulators have a simple command line "Executable.exe gamename.xxx" for all of them we need to change the ini file to have more options, eg to load HDF file.
For atari 5200 you can use MESS, but it's the worst emul, I m using others emuls (atari800,atari++), but for the moment all of them crash after atari logo ^^, a bad system rom I think. I will take a look this week, I will give you the command line after.