aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/phenax/utils/program.kt
blob: 2d3e04bc85c95c9e2c9ecd304ecded06b56bc932 (plain) (blame)
1
2
3
4
5
6
7
8
9
package phenax.utils

fun recordDuration(durationSeconds: Int) {
  System.setProperty("phenax.record.frameCount", (60 * durationSeconds).toString())
}

fun recordDuration(): Int? = System.getProperty("phenax.record.frameCount")?.toIntOrNull()

fun recordingEnabled(): Boolean = System.getenv("RECORD") != null