r/MAME • u/O_Pacity • 7d ago
mame.exe -console switch
Hi, trying to write a small script, i see a black DOS window open then close... should this console window only remain open IF a script calls for it? Its real hard to write code "blind" with no output console.
0
Upvotes
4
u/cuavas MAME Dev 7d ago
The
-consoleoption enables the interactive Lua console. It uses standard I/O, so you use it from the terminal you ran MAME from. Run MAME from a command prompt to use it.1
u/TheBigCore 6d ago edited 6d ago
/u/O_Pacity, https://www.geeksforgeeks.org/techtips/open-the-command-prompt-in-windows/
If you open the CMD prompt using any of the above methods, the CMD prompt will remain open after you run your script.
If applicable to your testing, on the last line of your script, add the
pausecommand. The CMD prompt will remain open, but if you press any key to continue, the prompt will close.