BSA(String filePath, boolean load) throws FileNotFoundException, IOException, BadParameter {
this.filePath = filePath;
in.openFile(filePath);
if (!in.extractString(0, 3).equals("BSA") || in.extractInt(1, 4) != 104) {
throw new BadParameter("Was not a BSA file of version 104: " + filePath);
}
offset = in.extractInt(0, 4);
archiveFlags = new LFlags(in.extract(0, 4));
folderCount = in.extractInt(0, 4);
folders = new HashMap<>(folderCount);