void osd_interface::register_options(osd_options &options) { // Register video options and update options video_options_add("none", NULL); video_register(); update_option(options, OSDOPTION_VIDEO, m_video_names); // Register sound options and update options sound_options_add("none", OSD_SOUND_NONE); sound_register(); update_option(options, OSDOPTION_SOUND, m_sound_names); // Register debugger options and update options debugger_options_add("none", OSD_DEBUGGER_NONE); debugger_options_add("internal", OSD_DEBUGGER_INTERNAL); debugger_register(); update_option(options, OSDOPTION_DEBUGGER, m_debugger_names); }
void osd_common_t::register_options() { REGISTER_MODULE(m_mod_man, FONT_OSX); REGISTER_MODULE(m_mod_man, FONT_WINDOWS); REGISTER_MODULE(m_mod_man, FONT_DWRITE); REGISTER_MODULE(m_mod_man, FONT_SDL); REGISTER_MODULE(m_mod_man, FONT_NONE); REGISTER_MODULE(m_mod_man, SOUND_XAUDIO2); REGISTER_MODULE(m_mod_man, SOUND_DSOUND); REGISTER_MODULE(m_mod_man, SOUND_COREAUDIO); REGISTER_MODULE(m_mod_man, SOUND_JS); REGISTER_MODULE(m_mod_man, SOUND_SDL); REGISTER_MODULE(m_mod_man, SOUND_NONE); REGISTER_MODULE(m_mod_man, MONITOR_SDL); REGISTER_MODULE(m_mod_man, MONITOR_WIN32); REGISTER_MODULE(m_mod_man, MONITOR_DXGI); #ifdef SDLMAME_MACOSX REGISTER_MODULE(m_mod_man, DEBUG_OSX); #endif #ifndef OSD_MINI REGISTER_MODULE(m_mod_man, DEBUG_WINDOWS); REGISTER_MODULE(m_mod_man, DEBUG_QT); REGISTER_MODULE(m_mod_man, DEBUG_IMGUI); REGISTER_MODULE(m_mod_man, DEBUG_NONE); #endif REGISTER_MODULE(m_mod_man, NETDEV_TAPTUN); REGISTER_MODULE(m_mod_man, NETDEV_PCAP); REGISTER_MODULE(m_mod_man, NETDEV_NONE); #ifndef NO_USE_MIDI REGISTER_MODULE(m_mod_man, MIDI_PM); #endif REGISTER_MODULE(m_mod_man, MIDI_NONE); REGISTER_MODULE(m_mod_man, KEYBOARDINPUT_SDL); REGISTER_MODULE(m_mod_man, KEYBOARDINPUT_RAWINPUT); REGISTER_MODULE(m_mod_man, KEYBOARDINPUT_DINPUT); REGISTER_MODULE(m_mod_man, KEYBOARDINPUT_WIN32); REGISTER_MODULE(m_mod_man, KEYBOARD_NONE); REGISTER_MODULE(m_mod_man, MOUSEINPUT_SDL); REGISTER_MODULE(m_mod_man, MOUSEINPUT_RAWINPUT); REGISTER_MODULE(m_mod_man, MOUSEINPUT_DINPUT); REGISTER_MODULE(m_mod_man, MOUSEINPUT_WIN32); REGISTER_MODULE(m_mod_man, MOUSE_NONE); REGISTER_MODULE(m_mod_man, LIGHTGUN_X11); REGISTER_MODULE(m_mod_man, LIGHTGUNINPUT_RAWINPUT); REGISTER_MODULE(m_mod_man, LIGHTGUNINPUT_WIN32); REGISTER_MODULE(m_mod_man, LIGHTGUN_NONE); REGISTER_MODULE(m_mod_man, JOYSTICKINPUT_SDL); REGISTER_MODULE(m_mod_man, JOYSTICKINPUT_WINHYBRID); REGISTER_MODULE(m_mod_man, JOYSTICKINPUT_DINPUT); REGISTER_MODULE(m_mod_man, JOYSTICKINPUT_XINPUT); REGISTER_MODULE(m_mod_man, JOYSTICK_NONE); REGISTER_MODULE(m_mod_man, OUTPUT_NONE); REGISTER_MODULE(m_mod_man, OUTPUT_CONSOLE); REGISTER_MODULE(m_mod_man, OUTPUT_NETWORK); REGISTER_MODULE(m_mod_man, OUTPUT_WIN32); // after initialization we know which modules are supported const char *names[20]; int num; std::vector<const char *> dnames; m_mod_man.get_module_names(OSD_MONITOR_PROVIDER, 20, &num, names); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_MONITOR_PROVIDER, dnames); m_mod_man.get_module_names(OSD_FONT_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_FONT_PROVIDER, dnames); m_mod_man.get_module_names(OSD_KEYBOARDINPUT_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_KEYBOARDINPUT_PROVIDER, dnames); m_mod_man.get_module_names(OSD_MOUSEINPUT_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_MOUSEINPUT_PROVIDER, dnames); m_mod_man.get_module_names(OSD_LIGHTGUNINPUT_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_LIGHTGUNINPUT_PROVIDER, dnames); m_mod_man.get_module_names(OSD_JOYSTICKINPUT_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_JOYSTICKINPUT_PROVIDER, dnames); m_mod_man.get_module_names(OSD_SOUND_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_SOUND_PROVIDER, dnames); #if 0 // Register midi options and update options m_mod_man.get_module_names(OSD_MIDI_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_MIDI_PROVIDER, dnames); #endif // Register debugger options and update options m_mod_man.get_module_names(OSD_DEBUG_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_DEBUG_PROVIDER, dnames); m_mod_man.get_module_names(OSD_OUTPUT_PROVIDER, 20, &num, names); dnames.clear(); for (int i = 0; i < num; i++) dnames.push_back(names[i]); update_option(OSD_OUTPUT_PROVIDER, dnames); // Register video options and update options video_options_add("none", nullptr); video_register(); update_option(OSDOPTION_VIDEO, m_video_names); }
void osd_common_t::register_options() { REGISTER_MODULE(m_mod_man, FONT_OSX); REGISTER_MODULE(m_mod_man, FONT_WINDOWS); REGISTER_MODULE(m_mod_man, FONT_SDL); REGISTER_MODULE(m_mod_man, FONT_NONE); REGISTER_MODULE(m_mod_man, SOUND_DSOUND); REGISTER_MODULE(m_mod_man, SOUND_COREAUDIO); REGISTER_MODULE(m_mod_man, SOUND_JS); REGISTER_MODULE(m_mod_man, SOUND_SDL); REGISTER_MODULE(m_mod_man, SOUND_NONE); #ifdef SDLMAME_MACOSX REGISTER_MODULE(m_mod_man, DEBUG_OSX); #endif #ifndef OSD_MINI REGISTER_MODULE(m_mod_man, DEBUG_WINDOWS); REGISTER_MODULE(m_mod_man, DEBUG_QT); REGISTER_MODULE(m_mod_man, DEBUG_INTERNAL); REGISTER_MODULE(m_mod_man, DEBUG_NONE); #endif REGISTER_MODULE(m_mod_man, NETDEV_TAPTUN); REGISTER_MODULE(m_mod_man, NETDEV_PCAP); REGISTER_MODULE(m_mod_man, NETDEV_NONE); #ifndef NO_USE_MIDI REGISTER_MODULE(m_mod_man, MIDI_PM); #endif REGISTER_MODULE(m_mod_man, MIDI_NONE); // after initialization we know which modules are supported const char *names[20]; int num; m_mod_man.get_module_names(OSD_FONT_PROVIDER, 20, &num, names); dynamic_array<const char *> dnames; for (int i = 0; i < num; i++) dnames.append(names[i]); update_option(OSD_FONT_PROVIDER, dnames); m_mod_man.get_module_names(OSD_SOUND_PROVIDER, 20, &num, names); dnames.reset(); for (int i = 0; i < num; i++) dnames.append(names[i]); update_option(OSD_SOUND_PROVIDER, dnames); #if 0 // Register midi options and update options m_mod_man.get_module_names(OSD_MIDI_PROVIDER, 20, &num, names); dnames.reset(); for (int i = 0; i < num; i++) dnames.append(names[i]); update_option(OSD_MIDI_PROVIDER, dnames); #endif // Register debugger options and update options m_mod_man.get_module_names(OSD_DEBUG_PROVIDER, 20, &num, names); dnames.reset(); for (int i = 0; i < num; i++) dnames.append(names[i]); update_option(OSD_DEBUG_PROVIDER, dnames); // Register video options and update options video_options_add("none", NULL); video_register(); update_option(OSDOPTION_VIDEO, m_video_names); }