blob: 8d93bcdfa7e456384e8bb699d72a5b79f6079c8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package dev.isxander.yacl3.debug;
import dev.isxander.yacl3.platform.YACLPlatform;
public final class DebugProperties {
/** Applies GL filtering to rendering images. */
public static final boolean IMAGE_FILTERING = boolProp("imageFiltering", false, false);
private static boolean boolProp(String name, boolean defProd, boolean defDebug) {
boolean defaultValue = YACLPlatform.isDevelopmentEnv() ? defDebug : defProd;
return Boolean.parseBoolean(System.getProperty("yacl3.debug." + name, Boolean.toString(defaultValue)));
}
}
|