Extract the boot sector code from the jar once again - it's a gem!

This commit is contained in:
2012-04-13 18:08:35 +00:00
parent 2d87ba07f2
commit ad7dbe72fe

View File

@ -25,7 +25,6 @@ import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.webcodepro.applecommander.storage.physical.ImageOrder; import com.webcodepro.applecommander.storage.physical.ImageOrder;
import com.webcodepro.applecommander.util.TextBundle; import com.webcodepro.applecommander.util.TextBundle;
@ -315,7 +314,7 @@ public abstract class FormattedDisk extends Disk implements DirectoryEntry {
*/ */
protected void writeBootCode() { protected void writeBootCode() {
InputStream inputStream = getClass(). InputStream inputStream = getClass().
getResourceAsStream("AppleCommander-boot.dump"); //$NON-NLS-1$ getResourceAsStream("/com/webcodepro/applecommander/storage/AppleCommander-boot.dump"); //$NON-NLS-1$
if (inputStream != null) { if (inputStream != null) {
byte[] bootCode = new byte[SECTOR_SIZE]; byte[] bootCode = new byte[SECTOR_SIZE];
try { try {