From c61c40abf54c9240971eb02ec3a889bd4fe2c8f2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 30 Jan 2019 21:15:46 +0000 Subject: Add DATAFOLDER const --- scripts/toy.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/toy.groovy') diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 02021a7..56657cb 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -39,11 +39,12 @@ def OWNER = null; final SITTER = "sarah-james"; final SOFT = "soft"; +final DATAFOLDER = getDataFolder(); // Imagery final DRESSED = "dressed", TITS = "tits", PUSSY = "pussy", LINGERIE = "lingerie", TEASE = "tease", SIT = "sit", BOOTS = "boots", KNEEL = "kneel", STOOD = "stood", MEAN = "mean", CROP = "crop", ASS = "ass", SQUAT = "squat", SSSH = "sssh"; final nDRESSED = "!$DRESSED", nTITS = "!$TITS", nTEASE = "!$TEASE"; final IMAGEDATA = { - return new File(getDataFolder() + "/images/toy") + return new File("$DATAFOLDER/images/toy") .listFiles() .findAll { d -> d.isDirectory(); } .collect { d -> -- cgit v1.2.3