Minor fixes

First init with X/Y, path won't change if ORAS is loaded.

Fixed.
This commit is contained in:
Kaphotics
2016-05-03 20:24:35 -07:00
parent c2da72c424
commit c7fd04f4cf
3 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ public Gifts()
loadData();
}
internal static readonly string FieldPath = Path.Combine(Main.RomFSPath, "DllField.cro");
private readonly string FieldPath = Path.Combine(Main.RomFSPath, "DllField.cro");
private byte[] FieldData;
private readonly int fieldOffset = Main.oras ? 0xF906C : 0xF805C;
private readonly int fieldSize = Main.oras ? 0x24 : 0x18;

View File

@@ -49,8 +49,8 @@ public Starters()
Width = Main.oras ? Width : Width/2 + 2;
loadData();
}
internal static string CROPath = Path.Combine(Main.RomFSPath, "DllPoke3Select.cro");
internal static string FieldPath = Path.Combine(Main.RomFSPath, "DllField.cro");
private readonly string CROPath = Path.Combine(Main.RomFSPath, "DllPoke3Select.cro");
private readonly string FieldPath = Path.Combine(Main.RomFSPath, "DllField.cro");
private readonly string[] specieslist = Main.getText(Main.oras ? 98 : 80);
private readonly ComboBox[][] Choices;
private readonly PictureBox[][] Previews;

View File

@@ -8,7 +8,7 @@ namespace pk3DS
{
public partial class TypeChart : Form
{
internal static string CROPath = Path.Combine(Main.RomFSPath, "DllBattle.cro");
private readonly string CROPath = Path.Combine(Main.RomFSPath, "DllBattle.cro");
private readonly string[] types = Main.getText(Main.oras ? 18 : 17);
private readonly int offset = Main.oras ? 0x000DB428 : 0x000D12A8;
private readonly byte[] chart = new byte[0x144];