Skip to content

Commit

Permalink
Hook up locked HDD option
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeLancelot authored and mborgerson committed Jun 21, 2018
1 parent 34a9015 commit 8e7cfe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def check_path(path):
hdd_path = settings.settings['hdd_path']
check_path(hdd_path)
short_anim_arg = ',short_animation' if settings.settings['short_anim'] else ''
hdd_lock_arg = ',locked' if settings.settings['hdd_locked'] else ''

dvd_path_arg = ''
if settings.settings['dvd_present']:
Expand All @@ -123,7 +124,7 @@ def check_path(path):
-machine xbox,bootrom=%(mcpx_path)s%(short_anim_arg)s -m 64 \
-bios %(flash_path)s \
-net nic,model=nvnet -net user \
-drive file=%(hdd_path)s,index=0,media=disk \
-drive file=%(hdd_path)s,index=0,media=disk%(hdd_lock_arg)s \
-drive index=1,media=cdrom%(dvd_path_arg)s \
-qmp tcp:localhost:4444,server,nowait' % locals()

Expand Down

0 comments on commit 8e7cfe7

Please sign in to comment.