MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / storeConfig

Method storeConfig

src/main/java/net/optifine/shaders/Shaders.java:701–730  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

699 }
700
701 public static void storeConfig()
702 {
703 SMCLog.info("Save shaders configuration.");
704
705 if (shadersConfig == null)
706 {
707 shadersConfig = new PropertiesOrdered();
708 }
709
710 EnumShaderOption[] aenumshaderoption = EnumShaderOption.values();
711
712 for (int i = 0; i < aenumshaderoption.length; ++i)
713 {
714 EnumShaderOption enumshaderoption = aenumshaderoption[i];
715 String s = enumshaderoption.getPropertyKey();
716 String s1 = getEnumShaderOption(enumshaderoption);
717 shadersConfig.setProperty(s, s1);
718 }
719
720 try
721 {
722 FileWriter filewriter = new FileWriter(configFile);
723 shadersConfig.store((Writer)filewriter, (String)null);
724 filewriter.close();
725 }
726 catch (Exception exception)
727 {
728 SMCLog.severe("Error saving configuration: " + exception.getClass().getName() + ": " + exception.getMessage());
729 }
730 }
731
732 public static String getEnumShaderOption(EnumShaderOption eso)
733 {

Callers 4

loadConfigMethod · 0.95
actionPerformedMethod · 0.95
onGuiClosedMethod · 0.95
resetSettingsMethod · 0.95

Calls 8

infoMethod · 0.95
getPropertyKeyMethod · 0.95
getEnumShaderOptionMethod · 0.95
severeMethod · 0.95
valuesMethod · 0.80
closeMethod · 0.65
getNameMethod · 0.65
getMessageMethod · 0.45

Tested by

no test coverage detected