PowerEntry parsing work
This commit is contained in:
1 parent
8878f07628
commit
97c118ae1a
2 files changed
+48
-3
No files matched your search
@@ -22,7 +22,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
public class EffectsParser {
|
||||
|
||||
public static String EffectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg";
|
||||
public static String effectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg";
|
||||
public static HashMap<String, EffectEntry> effect_data = new HashMap<>();
|
||||
private static final Pattern EFFECT_REGEX = Pattern.compile("(?<=EFFECTBEGIN)(.+?)(?=EFFECTEND)", Pattern.DOTALL);
|
||||
private static final Pattern SOURCE_REGEX = Pattern.compile("(?<=SOURCEBEGIN)(.+?)(?=SOURCEEND)", Pattern.DOTALL);
|
||||
@@ -34,7 +34,7 @@ public class EffectsParser {
|
||||
|
||||
// Read .wpak file from disk
|
||||
|
||||
byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath));
|
||||
byte[] fileData = Files.readAllBytes(Paths.get(effectsPath));
|
||||
String fileContents = new String(fileData);
|
||||
|
||||
// Iterate over effect entries from .wpak data
|
||||
|
||||
Reference in new issue
Block a user