data[i] = entry;
data[i] = entryData;
	public static boolean writeToRom(HackModule hm)	{		byte[][] data = new byte[entries.length][];		byte[] pointers = new byte[2 * entries.length];		int pointer = 0x101798, nullAddress = -1;		for (int i = 0; i < entries.length; i++)		{			if (entries[i].size() == 0)			{				if (nullAddress == -1)				{					if (pointer + entries[i].toByteArray().length >= end)						return false;					nullAddress = pointer;					data[i] = entries[i].toByteArray();					pointer += entries[i].toByteArray().length;				}				pointers[i * 2] = (byte) ((nullAddress - 0x100200) & 0xff);				pointers[i * 2 + 1] = (byte) (((nullAddress - 0x100200) & 0xff00) / 0x100);			}			else			{				byte[] entry = entries[i].toByteArray();				if (pointer + entry.length >= end)					return false;				data[i] = entry;				pointers[i * 2] = (byte) ((pointer - 0x100200) & 0xff);				pointers[i * 2 + 1] = (byte) (((pointer - 0x100200) & 0xff00) / 0x100);				pointer += entry.length;			}		}				hm.writetoFree(pointers, asmPointer, 3, pointers.length, pointers.length, true);				for (int i = 0; i < data.length; i++)			if (data[i] != null)				hm.rom.write(0x100200 + hm.rom.readMulti(						toRegPointer(hm.rom.readMulti(asmPointer, 3)) + (i * 2), 2), data[i]);				return true;	}