Imagine you have you cabinet/CP running and you use a GamePad hack (as i plan to do) and everithings runs fine...wait a minute, not EVERYTHING. Those console emulators you use dont let you configure a shortcut to close the application (as MAME does). You need a program that do that for you.
Using a Delphi class to manage external windows made by Mike Heydon on April 2004 i develop this small application. You pass two parameters to the program.
The first one is the file to execute
The second one is the document to load.
Example Of use
"D:\JoyClose\JoyClose.exe" "D:\VirtuaNES\VirtuaNES.exe" "D:\NES\Toki (U).zip"
This will execute the "VirtuaNes" emulator with the game "Toki (U)"
Then, when you press simultaneously the buttons 1 and 4 on the GamePad
the emulator (and the JoyClose itself) will terminate gracefully.
If you close the executed program, the JoyClose will terminate also.
If you close JoyClose, the executed program will terminate also.
Eventually i will add the posibility of configure the buttons you must press in order to quit the program. For now is hard coded in the application for testing purposes.
Currently JoyClose handle the first two parameters only. Any other parameters you
pass will be ignored.
Right now the program uses the obscene amount of 4 Mb of RAM (mainly because of the Delphi VCL). I'm not worried about that but im looking how can i lower the memory usage anyways. I could get rid of the Forms unit but the TDXInput from DelphiX apparently needs a TForm as a parent
If someone with Delphi/DelphiX experience is reading this can give me a clue then i can make the application completely "formless" (im using Delphi 7 Personal)
I like to have feedback
I know there are others program out there that can do this, i'm just a fan of "home-made" sofware. I'm programing this for using on my "GamePad controlled" Front-End (now renamed) Chipi-Chipi, you can check it out here...
http://forum.arcadecontrols.com/index.php?topic=74073.0Thanks