diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/mame/luaengine.cpp | 16 | ||||
-rw-r--r-- | src/frontend/mame/mame.cpp | 2 | ||||
-rw-r--r-- | src/frontend/mame/pluginopts.cpp | 10 | ||||
-rw-r--r-- | src/frontend/mame/pluginopts.h | 6 | ||||
-rw-r--r-- | src/frontend/mame/ui/info.h | 2 | ||||
-rw-r--r-- | src/frontend/mame/ui/sliders.cpp | 2 | ||||
-rw-r--r-- | src/frontend/mame/ui/ui.h | 4 |
7 files changed, 21 insertions, 21 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index 77345cc53f2..f5ebec7190d 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -1710,8 +1710,8 @@ void lua_engine::initialize() "empty", sol::property(&natural_keyboard::empty), "in_use", sol::property(&natural_keyboard::in_use, &natural_keyboard::set_in_use), "paste", &natural_keyboard::paste, - "post", [](natural_keyboard &nat, const std::string &text) { nat.post_utf8(text); }, - "post_coded", [](natural_keyboard &nat, const std::string &text) { nat.post_coded(text); }); + "post", [](natural_keyboard &nat, const std::string &text) { nat.post_utf8(text); }, + "post_coded", [](natural_keyboard &nat, const std::string &text) { nat.post_coded(text); }); /* ioport_port library * @@ -1819,12 +1819,12 @@ void lua_engine::initialize() "type_class", sol::property([](ioport_field &f) { switch (f.type_class()) { - case INPUT_CLASS_KEYBOARD: return "keyboard"; - case INPUT_CLASS_CONTROLLER: return "controller"; - case INPUT_CLASS_CONFIG: return "config"; - case INPUT_CLASS_DIPSWITCH: return "dipswitch"; - case INPUT_CLASS_MISC: return "misc"; - default: break; + case INPUT_CLASS_KEYBOARD: return "keyboard"; + case INPUT_CLASS_CONTROLLER: return "controller"; + case INPUT_CLASS_CONFIG: return "config"; + case INPUT_CLASS_DIPSWITCH: return "dipswitch"; + case INPUT_CLASS_MISC: return "misc"; + default: break; } throw false; }), diff --git a/src/frontend/mame/mame.cpp b/src/frontend/mame/mame.cpp index bfd98bc17fe..b7ec46717d3 100644 --- a/src/frontend/mame/mame.cpp +++ b/src/frontend/mame/mame.cpp @@ -135,7 +135,7 @@ void mame_machine_manager::start_luaengine() { // user may specify environment variables; subsitute them osd_subst_env(pluginpath, pluginpath); - + // and then scan the directory recursively m_plugins->scan_directory(pluginpath, true); } diff --git a/src/frontend/mame/pluginopts.cpp b/src/frontend/mame/pluginopts.cpp index ef30cf917f3..82441fd3da3 100644 --- a/src/frontend/mame/pluginopts.cpp +++ b/src/frontend/mame/pluginopts.cpp @@ -91,11 +91,11 @@ bool plugin_options::load_plugin(const std::string &path) : "."; plugin p; - p.m_name = document["plugin"]["name"].GetString(); - p.m_description = document["plugin"]["description"].GetString(); - p.m_type = document["plugin"]["type"].GetString(); - p.m_directory = std::move(dir); - p.m_start = false; + p.m_name = document["plugin"]["name"].GetString(); + p.m_description = document["plugin"]["description"].GetString(); + p.m_type = document["plugin"]["type"].GetString(); + p.m_directory = std::move(dir); + p.m_start = false; if (document["plugin"].HasMember("start") && (std::string(document["plugin"]["start"].GetString()) == "true")) p.m_start = true; diff --git a/src/frontend/mame/pluginopts.h b/src/frontend/mame/pluginopts.h index c722fb8e2a2..3565f5d9e78 100644 --- a/src/frontend/mame/pluginopts.h +++ b/src/frontend/mame/pluginopts.h @@ -23,9 +23,9 @@ struct plugin { std::string m_name; std::string m_description; - std::string m_type; - std::string m_directory; - bool m_start; + std::string m_type; + std::string m_directory; + bool m_start; }; diff --git a/src/frontend/mame/ui/info.h b/src/frontend/mame/ui/info.h index cd97d16eae8..2aa5b99c63c 100644 --- a/src/frontend/mame/ui/info.h +++ b/src/frontend/mame/ui/info.h @@ -48,7 +48,7 @@ protected: private: machine_static_info(const ui_options &options, machine_config const &config, ioport_list const *ports); - const ui_options & m_options; + const ui_options & m_options; // overall feature status ::machine_flags::type m_flags; diff --git a/src/frontend/mame/ui/sliders.cpp b/src/frontend/mame/ui/sliders.cpp index 12e15f1a19b..50c74c46497 100644 --- a/src/frontend/mame/ui/sliders.cpp +++ b/src/frontend/mame/ui/sliders.cpp @@ -232,7 +232,7 @@ void menu_sliders::custom_render(void *selectedref, float top, float bottom, flo // draw extra menu area ui().draw_outlined_box(container(), x1, y1, x2, y2, ui().colors().background_color()); y1 += ui().box_tb_border(); - + // determine the text height ui().draw_text_full(container(), tempstring.c_str(), 0, 0, x2 - x1 - 2.0f * ui().box_lr_border(), ui::text_layout::CENTER, ui::text_layout::TRUNCATE, mame_ui_manager::NONE, rgb_t::white(), rgb_t::black(), nullptr, &text_height); diff --git a/src/frontend/mame/ui/ui.h b/src/frontend/mame/ui/ui.h index e54adc80f06..71f6a5ab8b8 100644 --- a/src/frontend/mame/ui/ui.h +++ b/src/frontend/mame/ui/ui.h @@ -272,8 +272,8 @@ private: render_texture * m_mouse_arrow_texture; bool m_mouse_show; ui_options m_ui_options; - ui_colors m_ui_colors; - float m_target_font_height; + ui_colors m_ui_colors; + float m_target_font_height; std::unique_ptr<ui::machine_info> m_machine_info; |