int petui_init(void) { tui_menu_t ui_ioextensions_submenu; ui_create_main_menu(1, 1, 0, 2, 1); tui_menu_add_separator(ui_video_submenu); uivideo_init(ui_video_submenu, VID_CRTC, VID_NONE); tui_menu_add_separator(ui_special_submenu); tui_menu_add(ui_special_submenu, special_menu_items); uipetmodel_init(ui_special_submenu); ui_ioextensions_submenu = tui_menu_create("I/O extensions", 1); tui_menu_add_submenu(ui_special_submenu, "_I/O extensions", "Configure I/O extensions", ui_ioextensions_submenu, NULL, 0, TUI_MENU_BEH_CONTINUE); tui_menu_add(ui_rom_submenu, rom_menu_items); uipetdww_init(ui_ioextensions_submenu); uipethre`_init(ui_ioextensions_submenu); uipetreu_init(ui_ioextensions_submenu); uisidcart_init(ui_ioextensions_submenu, "$8F00", "$E900", "PET"); tui_menu_add_item(ui_ioextensions_submenu, "Enable Userport DAC", "Enable Userport DAC", toggle_UserportDAC_callback, NULL, 3, TUI_MENU_BEH_CONTINUE); return 0; }
int vic20ui_init(void) { tui_menu_t ui_ioextensions_submenu; tui_menu_t ui_final_expansion_submenu; tui_menu_t ui_vic_flash_plugin_submenu; tui_menu_t ui_megacart_submenu; ui_create_main_menu(1, 1, 1, 1, 1); tui_menu_add(ui_attach_submenu, attach_cartridge_menu_items); tui_menu_add(ui_detach_submenu, detach_cartridge_menu_items); tui_menu_add(ui_special_submenu, special_menu_items); ui_ioextensions_submenu = tui_menu_create("I/O Extensions", 1); tui_menu_add_submenu(ui_special_submenu, "_I/O Extensions...", "I/O Extensions", ui_ioextensions_submenu, NULL, 0, TUI_MENU_BEH_CONTINUE); uilightpen_init(ui_ioextensions_submenu); uisidcart_init(ui_ioextensions_submenu, "$9800", "$9C00", "VIC20"); ui_final_expansion_submenu = tui_menu_create("Final Expansion settings", 1); tui_menu_add(ui_final_expansion_submenu, final_expansion_menu_items); tui_menu_add_submenu(ui_ioextensions_submenu, "_Final Expansion settings...", "Final Expansion settings", ui_final_expansion_submenu, NULL, 0, TUI_MENU_BEH_CONTINUE); tui_menu_add_submenu(ui_ioextensions_submenu, "_Vic Flash Plugin settings...", "Vic Flash Plugin settings", ui_vic_flash_plugin_submenu, NULL, 0, TUI_MENU_BEH_CONTINUE); ui_megacart_submenu = tui_menu_create("Mega-Cart settings", 1); tui_menu_add(ui_megacart_submenu, megacart_menu_items); tui_menu_add_submenu(ui_ioextensions_submenu, "_Mega-Cart settings...", "Mega-Cart settings", ui_megacart_submenu, NULL, 0, TUI_MENU_BEH_CONTINUE); uidigimax_vic20_init(ui_ioextensions_submenu); uigeoram_vic20_init(ui_ioextensions_submenu); uisoundexpander_vic20_init(ui_ioextensions_submenu); uisoundsampler_init(ui_ioextensions_submenu); #ifdef HAVE_TFE uitfe_vic20_init(ui_ioextensions_submenu); #endif tui_menu_add(ui_rom_submenu, rom_menu_items); uivideo_init(ui_video_submenu, VID_VIC, VID_NONE); return 0; }