summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/floppycntrl.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-11-22 17:53:31 +1100
committer Vas Crabb <vas@vastheman.com>2019-11-22 17:53:31 +1100
commit09746dfedde2d2731de309a5729cb939cb1c93ba (patch)
tree1c377fbbbf9a335cfbe2e003bc399c6f02e6e742 /src/frontend/mame/ui/floppycntrl.h
parentaefe95ecd99b5be78a2c3cb3e1dca035315d8386 (diff)
UI updates:
* Re-wrote localisation loader: sanitise input, check for buffer overruns, fix endianness handling, keep data in a single allocated block, do a single hash lookup when fetching a string, print diagnostic output when things go wrong * Sort UI language menu so it's not in whatever random order the filesystem yields * Fixed most menu code to adjust L/R border for UI aspect ratio and pass container to render manager when getting UI aspect ratio * Converted a couple more things to use smart pointers
Diffstat (limited to 'src/frontend/mame/ui/floppycntrl.h')
-rw-r--r--src/frontend/mame/ui/floppycntrl.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/floppycntrl.h b/src/frontend/mame/ui/floppycntrl.h
index fafcd70a312..d48f8a88a53 100644
--- a/src/frontend/mame/ui/floppycntrl.h
+++ b/src/frontend/mame/ui/floppycntrl.h
@@ -5,18 +5,21 @@
ui/floppycntrl.h
***************************************************************************/
-
-#pragma once
-
#ifndef MAME_FRONTEND_UI_FLOPPYCNTRL_H
#define MAME_FRONTEND_UI_FLOPPYCNTRL_H
+#pragma once
+
#include "ui/imgcntrl.h"
#include "imagedev/floppy.h"
#include "formats/flopimg.h"
+#include <memory>
+
+
namespace ui {
+
class menu_control_floppy_image : public menu_control_device_image
{
public:
@@ -26,7 +29,8 @@ public:
private:
enum { SELECT_FORMAT = LAST_ID, SELECT_MEDIA, SELECT_RW };
- floppy_image_format_t **format_array;
+ floppy_image_device &fd;
+ std::unique_ptr<floppy_image_format_t * []> format_array;
floppy_image_format_t *input_format, *output_format;
std::string input_filename, output_filename;