@@ -27,6 +27,7 @@ def reset(self):
27
27
'xqemu_path' : '/path/to/xqemu' ,
28
28
'mcpx_path' : '/path/to/mcpx.bin' ,
29
29
'flash_path' : '/path/to/flash.bin' ,
30
+ 'eeprom_path' : '/path/to/eeprom.bin' ,
30
31
'hdd_path' : '/path/to/hdd.img' ,
31
32
'hdd_locked' : True ,
32
33
'dvd_present' : True ,
@@ -115,6 +116,8 @@ def bindDropdownWidget(widget, var):
115
116
bindFilePicker (self .setMcpxPath , self .mcpxPath )
116
117
bindTextWidget (self .flashPath , 'flash_path' )
117
118
bindFilePicker (self .setFlashPath , self .flashPath )
119
+ bindTextWidget (self .eepromPath , 'eeprom_path' )
120
+ bindFilePicker (self .setEepromPath , self .eepromPath )
118
121
bindTextWidget (self .hddPath , 'hdd_path' )
119
122
bindFilePicker (self .setHddPath , self .hddPath )
120
123
bindCheckWidget (self .hddLocked , 'hdd_locked' )
@@ -229,6 +232,9 @@ def escape_path(path):
229
232
flash_path = settings .settings ['flash_path' ]
230
233
check_path (flash_path )
231
234
flash_path_arg = escape_path (flash_path )
235
+ eeprom_path = settings .settings ['eeprom_path' ]
236
+ check_path (eeprom_path )
237
+ eeprom_path_arg = escape_path (eeprom_path )
232
238
hdd_path = settings .settings ['hdd_path' ]
233
239
check_path (hdd_path )
234
240
hdd_path_arg = escape_path (hdd_path )
@@ -246,7 +252,7 @@ def escape_path(path):
246
252
# Build qemu launch cmd
247
253
cmd = [xqemu_path ,
248
254
'-cpu' ,'pentium3' ,
249
- '-machine' ,'xbox%(accel_arg)s,bootrom=%(mcpx_path_arg)s%(short_anim_arg)s' % locals (),
255
+ '-machine' , 'xbox%(accel_arg)s,bootrom=%(mcpx_path_arg)s,eeprom=%(eeprom_path_arg )s%(short_anim_arg)s' % locals (),
250
256
'-m' , '%(sys_memory)s' % locals (),
251
257
'-bios' , '%(flash_path_arg)s' % locals (),
252
258
'-drive' ,'file=%(hdd_path_arg)s,index=0,media=disk%(hdd_lock_arg)s' % locals (),
0 commit comments