diff options
-rw-r--r-- | src/os-plugins/plugins/emufe/files/run-virt.include | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os-plugins/plugins/emufe/files/run-virt.include b/src/os-plugins/plugins/emufe/files/run-virt.include index 27af7aad..c81948cb 100644 --- a/src/os-plugins/plugins/emufe/files/run-virt.include +++ b/src/os-plugins/plugins/emufe/files/run-virt.include @@ -59,12 +59,12 @@ case "${emulator}" in dosbox*|Dosbox*) tar -xpzf ${diskfile} -C "${TMPDIR}" emudir=$(ls ${TMPDIR}) - [ $(echo ${filenumber}|wc|awk '{print $2}') -eq 1 ] && \ - TMPDIR=${TMPDIR}/${emudir} + [ $(echo ${emudir}|wc|awk '{print $2}') -eq 1 ] && \ + { mv ${TMPDIR}/${emudir}/* ${TMPDIR}; rmdir ${TMPDIR}/${emudir}; } echo "# empty" > ${TMPDIR}/dosbox.conf VIRTCMDOPTS="${emulator#*dosbox}" VIRTCMDOPTS="${VIRTCMDOPTS} -conf ${TMPDIR}/dosbox.conf -fullscreen" - VIRTCMD="dosbox" + VIRTCMD="dosbox -c mount c ${TMPDIR}" ;; SheepShaver*|sheepshaver*) [ "x${rombios}" != "x" ] && rom="--rom ${xmlpath}${rombios}" |