add post fscript support and change input to fileinput on rizzo
This commit is contained in:
parent
1abe9519c8
commit
7b7d4a206e
|
@ -170,7 +170,7 @@ public class Gonzo {
|
||||||
|
|
||||||
File fscript = new File(Main.inpath + "temp/fscript");
|
File fscript = new File(Main.inpath + "temp/fscript");
|
||||||
if (fscript.exists()) {
|
if (fscript.exists()) {
|
||||||
new Rizzo(fscript, Main.inpath + "temp/"); // Lets rizz this mod up
|
new Rizzo(new FileInputStream(fscript), Main.inpath + "temp/"); // Lets rizz this mod up
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new File(System.getProperty("user.home") + "/.firestar/temp/delete.txt").isFile()) {
|
if (new File(System.getProperty("user.home") + "/.firestar/temp/delete.txt").isFile()) {
|
||||||
|
@ -215,6 +215,13 @@ public class Gonzo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Post fscript changes
|
||||||
|
try (InputStream is = Main.class.getResourceAsStream("/post.fscript")) {
|
||||||
|
new Rizzo(is, Main.inpath + "temp/");
|
||||||
|
} catch (IOException ex) {
|
||||||
|
Logger.getLogger(Gonzo.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
|
}
|
||||||
|
|
||||||
// create a list of the contents of data/ for psp2psarc.exe to read from
|
// create a list of the contents of data/ for psp2psarc.exe to read from
|
||||||
List<String> oFilesList = new ArrayList<String>();
|
List<String> oFilesList = new ArrayList<String>();
|
||||||
List<String> oFilesList2 = new ArrayList<String>();
|
List<String> oFilesList2 = new ArrayList<String>();
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class Rizzo {
|
||||||
private int ver = 1;
|
private int ver = 1;
|
||||||
private String workingDir;
|
private String workingDir;
|
||||||
|
|
||||||
public Rizzo(File infile, String workingDir) throws FileNotFoundException, FirescriptFormatException {
|
public Rizzo(FileInputStream infile, String workingDir) throws FileNotFoundException, FirescriptFormatException {
|
||||||
if (!workingDir.endsWith("/")) this.workingDir = workingDir + "/";
|
if (!workingDir.endsWith("/")) this.workingDir = workingDir + "/";
|
||||||
else this.workingDir = workingDir;
|
else this.workingDir = workingDir;
|
||||||
scanner = new Scanner(infile);
|
scanner = new Scanner(infile);
|
||||||
|
|
2
firestar/src/main/resources/post.fscript
Normal file
2
firestar/src/main/resources/post.fscript
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# POST INSTALL FSCRIPT
|
||||||
|
fscript 1
|
Loading…
Reference in New Issue
Block a user