Hello,
Simply I couldn't get CPWizard to display a control panel layout prior to starting the emulator for anything other than MAME, and I'm sure there are plenty of these image viewers about, but I created one specifically for my needs. Hopefully somebody might find it useful. It is just one Windows executable and if there's interest I'm sure I can make a mac and linux version as it's written in a cross-platform library.
What you do is run the executable and as the first parameter give it an image file: jpeg, png, pcx, bmp, it will open up and wait for any key press then close, e.g.
NeilsSimpleFileViewer.exe c:\images\Nintendo64CP.png
How I use it is with Mala:
1. In Mala Config select other emulators then click on one (e.g. Nintendo64)
2. In Executable tab under pre steps enter the command
3. Start a game and the image is shown - in this case it's my mappings for the nintendo 64.
You can also supply a number of parameters and it's pretty robust in dealing with screens. As follows:
To run:
NeilsSimpleFileViewer.exe IMAGE STRETCH FULLSCREEN DEPTH WIDTH HEIGHT
Usually NeilsSimpleFileViewer.exe c:\myimage.jpg
Is all you need for an arcade cabinet and it will display the image fullscreen using the current desktop settings.
It is best to try this out from a command/dos window to ensure it works before integrating into MaLa or other front-end.
I use CPWizard to produce the layout with buttons, etc then export as an image and use that.
IMAGE: full filename and path to the image, quotes required if spaces in path/filename
STRETCH: 0 display the image as it is, 1 stretch it to fill the screen. Default 0
FULLSCREEN: 0 run as a windowed application, 1 run as a fullscreen application. Default 1
DEPTH: colour depth for screen, e.g. 16, 32. Default whatever desktop is
WIDTH/HEIGHT: pixel size to make screen. Default whatever desktop is
Only the filename is required.
Without an image or if '--help' is sent the parameters/help is displayed to the screen
To use the default for DEPTH/WIDTH/HEIGHT supply -1, which is the current desktop.
e.g. NeilsSimpleImageViewer.exe "c:\myimage.png" 1 0 -1 640 480
will show an image streteched in a window using the current depth and 640x480
If you experience flashing or magenta screen, it's because it couldn't use the settings you preferred. It will either eventually work or give up and show the error on the screen
The order of activity is:
1. Using data as supplied, failing that
2. Using data supplied but desktop width and height, failing that
3. Using data supplied but desktop width and height, a depth not the one supplied (16 or 32)
4. Using desktop settings in a safe mode that should work
I've tried this on my arcade cabinet which is just a standard windows 7 machine, it requires DirectX 3, which should be on almost all windows computers.
If you get any difficulties then run the DEBUG version and any messages will appear on the dos windows.
The location is:
https://docs.google.com/file/d/0BxqlWI4aN5_CaFZpc2hweHFfNjg/edit?usp=sharingclick on file then download.
You only need the one .exe, the rest is a debug version as mentioned, some test images and the source code.
Neil.