mirror of
https://github.com/holub/mame
synced 2025-05-07 23:02:33 +03:00

missing files. [Fabio Priuli] ui: when launching systems with mandatory carts, either from command line or from the game selector, prompt the user with the file manager menu so that he can mount a game where needed, instead of killing emulation with an error. [Fabio Priuli] out of whatsnew: it is now finally possible to launch nes and snes and a2600 (and a few more) from the internal system selector! also MESS doesn't error out anymore if you launch such systems with no carts mounted from command line. in short: emulation finally behaves as users typically expect!
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
/***************************************************************************
|
|
|
|
ui/filemngr.h
|
|
|
|
MESS's clunky built-in file manager
|
|
|
|
Copyright Nicola Salmoria and the MAME Team.
|
|
Visit http://mamedev.org for licensing and usage restrictions.
|
|
|
|
***************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifndef __UI_FILEMNGR_H__
|
|
#define __UI_FILEMNGR_H__
|
|
|
|
class ui_menu_file_manager : public ui_menu {
|
|
public:
|
|
astring current_directory;
|
|
astring current_file;
|
|
device_image_interface *selected_device;
|
|
|
|
static void force_file_manager(running_machine &machine, render_container *container, const char *warnings);
|
|
|
|
ui_menu_file_manager(running_machine &machine, render_container *container, const char *warnings);
|
|
virtual ~ui_menu_file_manager();
|
|
virtual void populate();
|
|
virtual void handle();
|
|
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2);
|
|
|
|
void fill_image_line(device_image_interface *img, astring &instance, astring &filename);
|
|
|
|
private:
|
|
astring m_warnings;
|
|
};
|
|
|
|
#endif /* __UI_FILEMNGR_H__ */
|