mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 05:46:47 -05:00
Branch OR/AS move GARC handling
ORAS uses a GARC->packed archive->files XY uses a GARC->files Solution provided by mg1189.
This commit is contained in:
@@ -8,7 +8,8 @@ public partial class Moves : Form
|
||||
{
|
||||
public Moves()
|
||||
{
|
||||
ARC.unpackMini(Directory.GetFiles("move")[0], "WD");
|
||||
if (Main.oras)
|
||||
ARC.unpackMini(Directory.GetFiles("move")[0], "WD");
|
||||
|
||||
movelist[0] = "";
|
||||
sortedmoves = (string[])movelist.Clone();
|
||||
@@ -162,7 +163,9 @@ private void setEntry()
|
||||
private void formClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
setEntry();
|
||||
ARC.packMini("move", "WD", "0", ".bin");
|
||||
|
||||
if (Main.oras)
|
||||
ARC.packMini("move", "WD", "0", ".bin");
|
||||
}
|
||||
|
||||
private void B_RandAll_Click(object sender, EventArgs e)
|
||||
@@ -186,12 +189,16 @@ private void B_RandAll_Click(object sender, EventArgs e)
|
||||
}
|
||||
internal static int[] getTypes()
|
||||
{
|
||||
ARC.unpackMini(Directory.GetFiles("move")[0], "WD");
|
||||
if (Main.oras)
|
||||
ARC.unpackMini(Directory.GetFiles("move")[0], "WD");
|
||||
string[] f2 = Directory.GetFiles("move");
|
||||
int[] moveTypes = new int[f2.Length];
|
||||
for (int i = 0; i < f2.Length; i++)
|
||||
moveTypes[i] = File.ReadAllBytes(f2[i])[0];
|
||||
ARC.packMini("move", "WD", "0", ".bin");
|
||||
|
||||
if (Main.oras)
|
||||
ARC.packMini("move", "WD", "0", ".bin");
|
||||
|
||||
return moveTypes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user