It could be doable in MAMEUI(FX) due to its integration with the core:
- The user select a game after setup an interface option like "Play Game Video before emulation starts". - A simple call to ShellExecute Windows API will launch the video associated to selected game name. Example: pacman.avi. This will open the associated video player like MPC-HC. - Then execute the core commands to launch pacman as usual.
Main problem is I believe only how to tell to the video player to close itself automatically at the end of the video. I know VLC and MPC-HC have some command-line options to do this. Also, another problem could be create a loop waiting for the video to be played and finished, because ShellExecute will open another process and so RunMAME will be exuuted immediately after, while the video is still playing. I'm not sure of this, I should do a test.
Example of preliminary code:
Code:
If (PlayGameVideo) ShellExecute(blah, blah, blah); RunMAME(gamename);
Edited by Mamesick (05/18/16 10:27 AM)
|