reimplement arc cleanup to be manual
This commit is contained in:
parent
2de4167cea
commit
583979ab48
|
@ -99,15 +99,6 @@ public class Bert implements ActionListener {
|
||||||
invoker.setEnabled(true);
|
invoker.setEnabled(true);
|
||||||
frame.dispose();
|
frame.dispose();
|
||||||
} else if (actionEvent.getSource() == downloadbtn) {
|
} else if (actionEvent.getSource() == downloadbtn) {
|
||||||
int result = JOptionPane.showConfirmDialog(frame, "All existing PSARC dumps will be deleted and replaced by the new ones.\nThis download could take several minutes. Do you want to continue?", "Download Game Assets", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
|
|
||||||
if (result == JOptionPane.NO_OPTION) {return;}
|
|
||||||
System.out.println("User requested download of assets. Deleting existing PSARCs");
|
|
||||||
new File(Main.inpath + "data.psarc").delete();
|
|
||||||
new File(Main.inpath + "data1.psarc").delete();
|
|
||||||
new File(Main.inpath + "data2.psarc").delete();
|
|
||||||
new File(Main.inpath + "dlc1.psarc").delete();
|
|
||||||
new File(Main.inpath + "dlc2.psarc").delete();
|
|
||||||
|
|
||||||
ArrayList<Main.ArcTarget> arcs = new ArrayList<Main.ArcTarget>();
|
ArrayList<Main.ArcTarget> arcs = new ArrayList<Main.ArcTarget>();
|
||||||
ArrayList<Main.ArcKey> keys = new ArrayList<Main.ArcKey>();
|
ArrayList<Main.ArcKey> keys = new ArrayList<Main.ArcKey>();
|
||||||
if (baseCheck.isSelected()) {
|
if (baseCheck.isSelected()) {
|
||||||
|
|
|
@ -83,6 +83,8 @@ public class Main {
|
||||||
public int loaderversion = 0; //minimum required vint or feature level from Firestar
|
public int loaderversion = 0; //minimum required vint or feature level from Firestar
|
||||||
public String author; // if null, "Author is unknown."
|
public String author; // if null, "Author is unknown."
|
||||||
public boolean enabled = true;
|
public boolean enabled = true;
|
||||||
|
public boolean[] requires = new boolean[]{false, false, false, false}; // TODO: load optional "requires" array from mod meta if it exists. it will be base, patches, hd dlc, and fury dlc in that order.
|
||||||
|
// TODO: save 'true true false false' in ost gen if neccessary (patches change localization)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mods
|
// Mods
|
||||||
|
|
|
@ -73,20 +73,6 @@
|
||||||
<text value=".firestar Folder"/>
|
<text value=".firestar Folder"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<component id="c68f2" class="javax.swing.JButton" binding="bOpenFolder">
|
|
||||||
<constraints>
|
|
||||||
<grid row="1" column="1" row-span="3" col-span="2" vsize-policy="0" hsize-policy="7" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
|
||||||
</constraints>
|
|
||||||
<properties>
|
|
||||||
<background color="-2271221"/>
|
|
||||||
<borderPainted value="false"/>
|
|
||||||
<focusPainted value="false"/>
|
|
||||||
<font name="Exo 2"/>
|
|
||||||
<foreground color="-1"/>
|
|
||||||
<label value="Browse"/>
|
|
||||||
<text value="Browse"/>
|
|
||||||
</properties>
|
|
||||||
</component>
|
|
||||||
<component id="63b35" class="javax.swing.JLabel">
|
<component id="63b35" class="javax.swing.JLabel">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
|
@ -187,6 +173,48 @@
|
||||||
<text value="Automatically check for updates on startup"/>
|
<text value="Automatically check for updates on startup"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
|
<grid id="6078c" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
|
<margin top="0" left="0" bottom="0" right="0"/>
|
||||||
|
<constraints>
|
||||||
|
<grid row="1" column="1" row-span="3" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<background color="-15128227"/>
|
||||||
|
<foreground color="-1"/>
|
||||||
|
<opaque value="false"/>
|
||||||
|
</properties>
|
||||||
|
<border type="none"/>
|
||||||
|
<children>
|
||||||
|
<component id="8fec2" class="javax.swing.JButton" binding="bOpenFolder">
|
||||||
|
<constraints>
|
||||||
|
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="7" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<background color="-2271221"/>
|
||||||
|
<borderPainted value="false"/>
|
||||||
|
<focusPainted value="false"/>
|
||||||
|
<font name="Exo 2"/>
|
||||||
|
<foreground color="-1"/>
|
||||||
|
<label value="Browse"/>
|
||||||
|
<text value="Browse"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
<component id="b08c4" class="javax.swing.JButton" binding="bDelArcs">
|
||||||
|
<constraints>
|
||||||
|
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="7" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<background color="-2271221"/>
|
||||||
|
<borderPainted value="false"/>
|
||||||
|
<focusPainted value="false"/>
|
||||||
|
<font name="Exo 2"/>
|
||||||
|
<foreground color="-1"/>
|
||||||
|
<label value="Delete PSARCs"/>
|
||||||
|
<text value="Delete PSARCs"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
</children>
|
||||||
|
</grid>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -41,6 +41,7 @@ public class Waldorf implements ActionListener {
|
||||||
private JButton dwnARCbtn;
|
private JButton dwnARCbtn;
|
||||||
private JButton fOutpathChangebtn;
|
private JButton fOutpathChangebtn;
|
||||||
private JCheckBox checkUpdatesToggle;
|
private JCheckBox checkUpdatesToggle;
|
||||||
|
private JButton bDelArcs;
|
||||||
|
|
||||||
MissPiggy invoker;
|
MissPiggy invoker;
|
||||||
private String tOutPath = Main.outpath;
|
private String tOutPath = Main.outpath;
|
||||||
|
@ -68,6 +69,7 @@ public class Waldorf implements ActionListener {
|
||||||
okbtn.addActionListener(this);
|
okbtn.addActionListener(this);
|
||||||
resetbtn.addActionListener(this);
|
resetbtn.addActionListener(this);
|
||||||
bOpenFolder.addActionListener(this);
|
bOpenFolder.addActionListener(this);
|
||||||
|
bDelArcs.addActionListener(this);
|
||||||
dwnARCbtn.addActionListener(this);
|
dwnARCbtn.addActionListener(this);
|
||||||
dwnSDKbtn.addActionListener(this);
|
dwnSDKbtn.addActionListener(this);
|
||||||
fOutpathChangebtn.addActionListener(this);
|
fOutpathChangebtn.addActionListener(this);
|
||||||
|
@ -125,6 +127,17 @@ public class Waldorf implements ActionListener {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
if (actionEvent.getSource() == bDelArcs) {
|
||||||
|
int result = JOptionPane.showConfirmDialog(frame, "All existing PSARC dumps will be deleted.\nDo you want to continue?", "Delete PSARCs", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
|
||||||
|
if (result == JOptionPane.NO_OPTION) {return;}
|
||||||
|
System.out.println("User requested arc wipe, deleting existing PSARCs");
|
||||||
|
new File(Main.inpath + "data.psarc").delete();
|
||||||
|
new File(Main.inpath + "data1.psarc").delete();
|
||||||
|
new File(Main.inpath + "data2.psarc").delete();
|
||||||
|
new File(Main.inpath + "dlc1.psarc").delete();
|
||||||
|
new File(Main.inpath + "dlc2.psarc").delete();
|
||||||
|
JOptionPane.showMessageDialog(frame, "PSARC files purged.", "Delete PSARCs", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
} else
|
||||||
if (actionEvent.getSource() == dwnARCbtn) {
|
if (actionEvent.getSource() == dwnARCbtn) {
|
||||||
new Bert(invoker.frame);
|
new Bert(invoker.frame);
|
||||||
frame.dispose();
|
frame.dispose();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user