Added input and output frame file save routines (#134)

* Added input and output frame file save routines

* First pass at review items

* Revised logic to not crash on start and pass tests

* Updated build.gradle to force line endings. Spotless passes now.

* Reverted lineEndings to not force Unix.

Gerth needs to fix up his dev pc.

Co-authored-by: Banks T <btrout.dhrs@gmail.com>
This commit is contained in:
Chris Gerth
2020-10-16 20:49:50 -05:00
committed by GitHub
parent 31013346c0
commit 3a78e23a55
3 changed files with 137 additions and 1 deletions

View File

@@ -358,6 +358,12 @@ public class ConfigManager {
return logFile.toPath();
}
public Path getImageSavePath() {
var imgFilePath = Path.of(configDirectoryFile.toString(), "imgSaves").toFile();
if (!imgFilePath.exists()) imgFilePath.mkdirs();
return imgFilePath.toPath();
}
public void requestSave() {
logger.trace("Requesting save...");
saveRequestTimestamp = System.currentTimeMillis();