public static void readFromRom(HackModule hm) { if (!alreadyRead) { alreadyRead = true; entries = new Hotspot[NUM_HOTSPOTS]; for (int i = 0; i < entries.length; i++) { short x1 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8),2), y1 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8) + 2,2), x2 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8) + 4,2), y2 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8) + 6,2); entries[i] = new Hotspot(x1,y1,x2,y2); } }
public void readFromRom() { readFromRom(this);  EbMap.loadDrawTilesets(rom); TPTEditor.readFromRom(this); SpriteEditor.readFromRom(rom); EbMap.loadSpriteData(rom);
	public static void readFromRom(HackModule hm)	{			if (!alreadyRead)		{			alreadyRead = true;			entries = new Hotspot[NUM_HOTSPOTS];			for (int i = 0; i < entries.length; i++)			{				short x1 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8),2),					y1 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8) + 2,2),					x2 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8) + 4,2),					y2 = (short) hm.rom.readMulti(HOTSPOTS_ADDR + (i * 8) + 6,2);				entries[i] = new Hotspot(x1,y1,x2,y2);			}		}	}