From c0a95d278e6702b987e2b8743ffda8490422af4e Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Wed, 17 Feb 2021 21:53:07 +0100 Subject: [PATCH] Add toString implementation to RenderSettings We print them to the log in a few places, that's fairly useless without a toString implementation. --- .../com/replaymod/render/RenderSettings.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/main/java/com/replaymod/render/RenderSettings.java b/src/main/java/com/replaymod/render/RenderSettings.java index 1043792d..511ef027 100644 --- a/src/main/java/com/replaymod/render/RenderSettings.java +++ b/src/main/java/com/replaymod/render/RenderSettings.java @@ -443,4 +443,32 @@ public class RenderSettings { public boolean isHighPerformance() { return highPerformance; } + + @Override + public String toString() { + return "RenderSettings{" + + "renderMethod=" + renderMethod + + ", encodingPreset=" + encodingPreset + + ", videoWidth=" + videoWidth + + ", videoHeight=" + videoHeight + + ", framesPerSecond=" + framesPerSecond + + ", bitRate=" + bitRate + + ", outputFile=" + outputFile + + ", renderNameTags=" + renderNameTags + + ", stabilizeYaw=" + stabilizeYaw + + ", stabilizePitch=" + stabilizePitch + + ", stabilizeRoll=" + stabilizeRoll + + ", chromaKeyingColor=" + chromaKeyingColor + + ", sphericalFovX=" + sphericalFovX + + ", sphericalFovY=" + sphericalFovY + + ", injectSphericalMetadata=" + injectSphericalMetadata + + ", depthMap=" + depthMap + + ", cameraPathExport=" + cameraPathExport + + ", antiAliasing=" + antiAliasing + + ", exportCommand='" + exportCommand + '\'' + + ", exportArgumentsPreBgra='" + exportArgumentsPreBgra + '\'' + + ", exportArguments='" + exportArguments + '\'' + + ", highPerformance=" + highPerformance + + '}'; + } }