Shorted video recorder env var.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -6s

This commit is contained in:
Willem Cazander 2024-06-28 14:31:06 +02:00
parent 857cc43fa5
commit 36d40dbbdd
2 changed files with 6 additions and 6 deletions

View file

@ -49,7 +49,7 @@ define _mb_openmsx_run
SPEED=$(MB_OPENMSX_SPEED) \ SPEED=$(MB_OPENMSX_SPEED) \
RENDERER=$(MB_OPENMSX_RENDERER) \ RENDERER=$(MB_OPENMSX_RENDERER) \
THROTTLE=$(MB_OPENMSX_THROTTLE) \ THROTTLE=$(MB_OPENMSX_THROTTLE) \
RECORD_SESSION=$(if $(filter on,$(MB_OPENMSX_RECORDER)),"$(1)-omsx/output.avi") \ RECORDER=$(if $(filter on,$(MB_OPENMSX_RECORDER)),"$(1)-omsx/output.avi") \
OPENMSX_USER_DATA="$(1)-omsx/share" \ OPENMSX_USER_DATA="$(1)-omsx/share" \
$(PATH_OPENMSX)/openmsx \ $(PATH_OPENMSX)/openmsx \
-machine $(2) \ -machine $(2) \

View file

@ -21,8 +21,8 @@
# JOYPORTB=mouse # JOYPORTB=mouse
# Inserts mouse in joyportb. # Inserts mouse in joyportb.
# #
# RECORD_SESSION=bin/output.avi # RECORDER=bin/output.avi
# Enables the session video recorder. # Enables the the video recorder.
# #
if {[info exists ::env(RENDERER)] && ([string trim $::env(RENDERER)] != "")} { if {[info exists ::env(RENDERER)] && ([string trim $::env(RENDERER)] != "")} {
@ -67,9 +67,9 @@ if {[info exists ::env(JOYPORTB)] && ([string trim $::env(JOYPORTB)] != "")} {
} }
} }
if {[info exists ::env(RECORD_SESSION)] && ([string trim $::env(RECORD_SESSION)] != "")} { if {[info exists ::env(RECORDER)] && ([string trim $::env(RECORDER)] != "")} {
if {[catch {after time 1 "record start [string trim $::env(RECORD_SESSION)]"} err_msg]} { if {[catch {after time 1 "record start [string trim $::env(RECORDER)]"} err_msg]} {
puts stderr "error: env.RECORD_SESSION value $err_msg" puts stderr "error: env.RECORDER value $err_msg"
exit 1 exit 1
} }
} }