Running Mame in fullscreen I press ESC to quit. It does quit, but the fullscreen window just freezes there.
The OS is active. I can bring up a shell with my shortcut keys and clearly everything still works, but the screen is frozen on whatever the last frame was.
Non-fullscreen works fine.
This is SDL mame:
http://os4depot.net/share/emulation/gamesystem/sdl_mame.lha==
Seems to be the scripts I have wrote.
I have a script file specificially for one game:
.KEY ARGS/F
.BRA {
.KET }
mame GAME ssf2t {ARGS}
This was just to create an icon image. That is has:
Execution mode: Shell
Ask for input is enabled
"mame" is another script:
.KEY GAME/K,ARGS/F
.BRA {
.KET }
.DEFAULT GAME "ssf2t"
.DEFAULT ARGS "-afs"
SET MAME_LOC=Programs:mame0151_os4
SET ORIG_STACK=`stack`
SET ORIG_STACK=`RX "ECHO COMPRESS(TRANSLATE(WORD(Arg(1),5),,','))" ${ORIG_STACK}`
; not great, we may have other options beginning with w!
; todo: improve
IF `RX "ECHO INDEX(Arg(1),'-w')" {ARGS}` EQ "0"
SET SDLMAME_DESKTOPDIM=640x480
ELSE
SET SDLMAME_DESKTOPDIM=800x600
ENDIF
pushcd ${MAME_LOC}
stack 2048000
${MAME_LOC}/mame {GAME} {ARGS}
stack ${ORIG_STACK}
popcd
UNSET SDLMAME_DESKTOPDIM
UNSET ORIG_STACK
UNSET NAME_LOC
Execution mode: Shell
Ask for input is disabled
When I run it this way (double clicking the ssf2t script, first one above): ssf2t script > mame I notice that the full screen appears, but there is the AmigaOS mouse cursor. I need to click once on the screen. I can play, but pressing ESC causes the frame freeze - the window does not close.
If, instead, I do all of thise just invoking the actual "mame" binary and avoid all scripts then the fullscreen shows and there is no mouse cursor. It is already the active window/screen. Then, ESC for fullscreen does work.
I do not know what the difference would be?
Edited by rjd324 on 2022/7/2 12:11:19
Edited by rjd324 on 2022/7/2 12:23:12