From 4c3b249745992e1508458a99208234420289d013 Mon Sep 17 00:00:00 2001 From: makamys Date: Fri, 20 Oct 2023 23:16:25 +0200 Subject: Fix shader line ending normalization being broken (fixes #28) --- src/main/java/makamys/neodymium/util/Preprocessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/makamys/neodymium/util/Preprocessor.java b/src/main/java/makamys/neodymium/util/Preprocessor.java index 8ee9229..d2fb0ba 100644 --- a/src/main/java/makamys/neodymium/util/Preprocessor.java +++ b/src/main/java/makamys/neodymium/util/Preprocessor.java @@ -5,7 +5,7 @@ import java.util.Set; public class Preprocessor { public static String preprocess(String text, Set defines) { - String[] lines = text.replaceAll("\\r\\n", "\\n").split("\\n"); + String[] lines = text.replaceAll("\\r\\n", "\n").split("\\n"); IfElseBlockStatus ifElseBlockStatus = IfElseBlockStatus.NONE; boolean ifElseConditionMet = false; -- cgit