Browse Source

More effectmod parser work.

feature-config-parsing2
MagicBot 5 months ago
parent
commit
9c1ec1069f
  1. 1
      src/engine/ConfigParsing/EffectsParser.java

1
src/engine/ConfigParsing/EffectsParser.java

@ -30,6 +30,7 @@ public class EffectsParser {
private static final Pattern SOURCE_REGEX = Pattern.compile("(?<=SOURCEBEGIN)(.+?)(?=SOURCEEND)", Pattern.DOTALL); private static final Pattern SOURCE_REGEX = Pattern.compile("(?<=SOURCEBEGIN)(.+?)(?=SOURCEEND)", Pattern.DOTALL);
private static final Pattern MODS_REGEX = Pattern.compile("(?<=MODSBEGIN)(.+?)(?=MODSEND)", Pattern.DOTALL); private static final Pattern MODS_REGEX = Pattern.compile("(?<=MODSBEGIN)(.+?)(?=MODSEND)", Pattern.DOTALL);
private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*"); private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*");
public static void init() throws IOException { public static void init() throws IOException {
byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath)); byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath));

Loading…
Cancel
Save