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

Method saveShader

src/main/java/net/optifine/shaders/Shaders.java:3176–3189  ·  view source on GitHub ↗
(String filename, String code)

Source from the content-addressed store, hash-verified

3174 }
3175
3176 public static void saveShader(String filename, String code)
3177 {
3178 try
3179 {
3180 File file1 = new File(shaderPacksDir, "debug/" + filename);
3181 file1.getParentFile().mkdirs();
3182 Config.writeFile(file1, code);
3183 }
3184 catch (IOException ioexception)
3185 {
3186 Config.warn("Error saving: " + filename);
3187 ioexception.printStackTrace();
3188 }
3189 }
3190
3191 private static void clearDirectory(File dir)
3192 {

Callers 4

createVertShaderMethod · 0.95
createGeomShaderMethod · 0.95
createFragShaderMethod · 0.95
processMethod · 0.95

Calls 2

writeFileMethod · 0.95
warnMethod · 0.95

Tested by

no test coverage detected