Files
orx/build-logic/orx-convention/src/preload/kotlin/ApplicationPreload.kt
Edwin Jakobs b7ba6f6daa Feature variants (#376)
Migrate from buildSrc to build-logic. Setup feature variants.
2025-09-17 10:03:02 +02:00

14 lines
407 B
Kotlin

package org.openrndr
import org.openrndr.extensions.SingleScreenshot
/**
* This [Preload] class is used by the [CollectScreenshots] task to inject the [SingleScreenshot] extension
*/
class Preload : ApplicationPreload() {
override fun onProgramSetup(program: Program) {
program.extend(SingleScreenshot()) {
this.outputFile = System.getProperty("screenshotPath")
}
}
}