Split openMSX layout from artifacts and added video recorder.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -5s

This commit is contained in:
Willem Cazander 2024-06-27 20:14:23 +02:00
parent dd634833ef
commit b4d4fad185
8 changed files with 39 additions and 25 deletions

View file

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