2
* uitfe.c - TFE and RRNET UI interface for MS-DOS.
5
* Marco van den Heuvel <blackystardust68@yahoo.com>
7
* This file is part of VICE, the Versatile Commodore Emulator.
8
* See README for copyright notice.
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
33
#include "resources.h"
39
TUI_MENU_DEFINE_TOGGLE(ETHERNET_ACTIVE)
40
TUI_MENU_DEFINE_RADIO(ETHERNET_AS_RR)
43
static TUI_MENU_CALLBACK(ethernet_as_rr_submenu_callback)
48
resources_get_value("ETHERNET_AS_RR", (void *)&value);
49
sprintf(s, "%s",(value==0) ? "TFE" : "RRNET");
53
static tui_menu_item_def_t ethernet_as_rr_submenu[] = {
54
{ "_TFE", NULL, radio_ETHERNET_AS_RR_callback,
55
(void *)0, 7, TUI_MENU_BEH_CLOSE, NULL, NULL },
56
{ "_RRNET", NULL, radio_ETHERNET_AS_RR_callback,
57
(void *)1, 7, TUI_MENU_BEH_CLOSE, NULL, NULL },
61
static tui_menu_item_def_t tfe_menu_items[] = {
62
{ "_Enable Ethernet:", "Emulate Ethernet Cartridge",
63
toggle_ETHERNET_ACTIVE_callback, NULL, 3,
64
TUI_MENU_BEH_CONTINUE, NULL, NULL },
65
{ "_TFE or RRNET:", "Select which type to use",
66
ethernet_as_rr_submenu_callback, NULL, 7,
67
TUI_MENU_BEH_CONTINUE, ethernet_as_rr_submenu,
72
void uitfe_init(struct tui_menu *parent_submenu)
74
tui_menu_t ui_tfe_submenu;
76
ui_tfe_submenu = tui_menu_create("TFE settings", 1);
78
tui_menu_add(ui_tfe_submenu, tfe_menu_items);
80
tui_menu_add_submenu(parent_submenu, "_TFE settings...",
82
ui_tfe_submenu, NULL, 0,
83
TUI_MENU_BEH_CONTINUE);