windows compatibility fixes v3
This commit is contained in:
@@ -155,7 +155,7 @@ public class Gonzo {
|
|||||||
try {
|
try {
|
||||||
System.out.println("Firestar is extracting " + m.friendlyName + " by " + m.author);
|
System.out.println("Firestar is extracting " + m.friendlyName + " by " + m.author);
|
||||||
consoleDisplay.append("Firestar is extracting " + m.friendlyName + " by " + m.author + "\n");
|
consoleDisplay.append("Firestar is extracting " + m.friendlyName + " by " + m.author + "\n");
|
||||||
new ZipFile(System.getProperty("user.home") + "/.firestar/mods/" + m.path).extractAll(System.getProperty("user.home") + "/.firestar/temp/");
|
new ZipFile(System.getProperty("user.home") + "/.firestar/mods/" + m.path.trim()).extractAll(System.getProperty("user.home") + "/.firestar/temp/");
|
||||||
|
|
||||||
if (new File(System.getProperty("user.home") + "/.firestar/temp/delete.txt").isFile()) {
|
if (new File(System.getProperty("user.home") + "/.firestar/temp/delete.txt").isFile()) {
|
||||||
System.out.println("Firestar is deleting files that conflict with " + m.friendlyName + " by " + m.author);
|
System.out.println("Firestar is deleting files that conflict with " + m.friendlyName + " by " + m.author);
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ public class MissPiggy implements ActionListener {
|
|||||||
System.out.println("Initializing blacklist from file with length of " + bListArray.length + " units"); //debug
|
System.out.println("Initializing blacklist from file with length of " + bListArray.length + " units"); //debug
|
||||||
for (String s : bListArray) {
|
for (String s : bListArray) {
|
||||||
for (Main.Mod m : Main.Mods) {
|
for (Main.Mod m : Main.Mods) {
|
||||||
if (s.equals(m.path)) {
|
if (s.trim().equals(m.path.trim())) {
|
||||||
m.enabled = false;
|
m.enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -474,7 +474,7 @@ public class MissPiggy implements ActionListener {
|
|||||||
|
|
||||||
try { //debug
|
try { //debug
|
||||||
|
|
||||||
File pathReference = new File(System.getProperty("user.home") + "/.firestar/mods/" + Main.Mods.get(modList.getSelectedIndex()).path);
|
File pathReference = new File(System.getProperty("user.home") + "/.firestar/mods/" + Main.Mods.get(modList.getSelectedIndex()).path.trim());
|
||||||
DecimalFormat df = new DecimalFormat("##.##");
|
DecimalFormat df = new DecimalFormat("##.##");
|
||||||
df.setRoundingMode(RoundingMode.UP);
|
df.setRoundingMode(RoundingMode.UP);
|
||||||
float modFileSize = pathReference.length(); //precise units
|
float modFileSize = pathReference.length(); //precise units
|
||||||
|
|||||||
Reference in New Issue
Block a user