mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2025-12-18 03:50:28 +01:00
Fix user provided whdload options
This commit is contained in:
@@ -114,10 +114,10 @@ class Wrapper(base.ArchiveBase):
|
||||
# find proper way to handle slave
|
||||
# 1. check if there are user provided params
|
||||
contents = f"cd {slave_path}\n"
|
||||
if self.fsuae_options.get('wrapper_whdload_options'):
|
||||
if self.all_options.get('wrapper_whdload_options'):
|
||||
contents = (f"{contents}"
|
||||
f"C:whdload "
|
||||
f"{self.fsuae_options['wrapper_whdload_options']} "
|
||||
f"{self.all_options['wrapper_whdload_options']} "
|
||||
f"Slave={slave_fname}\n")
|
||||
else:
|
||||
# no params, find if kgiconload is available
|
||||
|
||||
@@ -225,7 +225,7 @@ class TestWHDLoad(TestCase):
|
||||
listdir.return_value = contents
|
||||
wrapper = whdload.Wrapper('Config.fs-uae', utils.CmdOption(), {})
|
||||
whdl_opts = 'Preload SplashDelay=0 MMU PAL'
|
||||
wrapper.fsuae_options['wrapper_whdload_options'] = whdl_opts
|
||||
wrapper.all_options['wrapper_whdload_options'] = whdl_opts
|
||||
with mock.patch('builtins.open', _open):
|
||||
self.assertTrue(wrapper._find_slave())
|
||||
handle = _open()
|
||||
|
||||
Reference in New Issue
Block a user