Skip to content

Commit 46166de

Browse files
author
Alessandro Ametrano Abbruzzetti
committed
Added makedisk utility
1 parent 632113a commit 46166de

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ The emulator can be launched in two ways:
8888

8989
here you can drag & drop the rom file, the HD SCSI images, the floppy images and configure ram size.
9090

91+
If you need to create empty disks you can use the command `makedisk.bat` or `makedisk.sh`:
92+
`makedisk.sh test.dsk 10m` will create an empty HD 10M file that could be used as a SCSI hard disk (attach it to the emulator and then initialize it with Apple HD SC Setup)
93+
9194
## Supported ROMS
9295
| ROM type |MD5|
9396
|---------------|---|

bin/makedisk.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@echo off
2+
set HOME_PATH=%~dp0
3+
set HOME=%HOME_PATH:~0,-1%
4+
set LIB="%HOME%\lib"
5+
set CP=
6+
set CLASS=ucesoft.mac.util.EmptyDiskMaker
7+
8+
if defined JAVA_HOME goto :setJavaHome
9+
set JAVA=java
10+
goto :Check
11+
:setJavaHome
12+
set JAVA=%JAVA_HOME%\bin\java
13+
:Check
14+
%JAVA% -cp %CP% %CLASS% %*
15+

bin/makedisk.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
HOME=`dirname "$0"`
4+
HOME=`cd "$HOME"; pwd -P`
5+
LIB=$HOME/lib
6+
CP=
7+
if [ ! -x $JAVA_HOME/bin/java ]; then
8+
JAVA=java
9+
else
10+
JAVA=$JAVA_HOME/bin/java
11+
fi
12+
$JAVA -cp $CP -DsmacHome=$HOME ucesoft.mac.util.EmptyDiskMaker "$@"

0 commit comments

Comments
 (0)