diff options
author | 2022-04-11 06:54:35 -0400 | |
---|---|---|
committer | 2022-04-11 06:54:35 -0400 | |
commit | b8758ed358e38adc40294ba39a410fe06f1b0c7c (patch) | |
tree | 329acfa0b3dc212383e243edd1aa621b823d86a0 /src/frontend/mame/ui/filecreate.h | |
parent | 9ef4774f2ee83df5ea6def9342450fad5061db23 (diff) |
Consolidated floppy_image_device::m_create_fs and floppy_image_device::m_io_fs vectors (#9542)
* Consolidated floppy_image_device::m_create_fs and floppy_image_device::m_io_fs vectors
We had two separate members in floppy_image_device (m_create_fs and m_io_fs) that contained the same data. Whether the file systems can be formatted or read can be identified by querying fs::manager_t.
For this reason, it seems bad to have these separate members, the seemingly only reason to make the UI code slightly less complicated. For this reason I consolidated these two members and moved the burden of selecting which ones are creatable to the UI code.
Diffstat (limited to 'src/frontend/mame/ui/filecreate.h')
-rw-r--r-- | src/frontend/mame/ui/filecreate.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/filecreate.h b/src/frontend/mame/ui/filecreate.h index bc08ef66974..bf8d7accbf6 100644 --- a/src/frontend/mame/ui/filecreate.h +++ b/src/frontend/mame/ui/filecreate.h @@ -86,7 +86,7 @@ class menu_select_floppy_init : public menu { public: menu_select_floppy_init(mame_ui_manager &mui, render_container &container, - const std::vector<floppy_image_device::fs_info> &fs, int *result); + std::vector<std::reference_wrapper<const floppy_image_device::fs_info>> &&fs, int *result); virtual ~menu_select_floppy_init() override; private: @@ -94,8 +94,8 @@ private: virtual void handle(event const *ev) override; // internal state - const std::vector<floppy_image_device::fs_info> &m_fs; - int * m_result; + std::vector<std::reference_wrapper<const floppy_image_device::fs_info>> m_fs; + int * m_result; }; |