2
* uiburstmod.c - C64 Burst Modification 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
31
#include "resources.h"
34
#include "uiburstmod.h"
36
TUI_MENU_DEFINE_RADIO(BurstMod)
38
static TUI_MENU_CALLBACK(burstmod_submenu_callback)
43
resources_get_int("BurstMod", &value);
59
static tui_menu_item_def_t burstmod_submenu[] = {
60
{ "None", NULL, radio_BurstMod_callback,
61
(void *)0, 20, TUI_MENU_BEH_CLOSE, NULL, NULL },
62
{ "CIA-1", NULL, radio_BurstMod_callback,
63
(void *)1, 20, TUI_MENU_BEH_CLOSE, NULL, NULL },
64
{ "CIA-2", NULL, radio_BurstMod_callback,
65
(void *)2, 20, TUI_MENU_BEH_CLOSE, NULL, NULL },
69
static tui_menu_item_def_t burstmod_menu_items[] = {
70
{ "Burst Modification:", "Select the burst modification",
71
burstmod_submenu_callback, NULL, 11,
72
TUI_MENU_BEH_CONTINUE, burstmod_submenu,
73
"Burst Modification" },
77
void uiburstmod_init(struct tui_menu *parent_submenu)
79
tui_menu_t ui_burstmod_submenu;
81
ui_burstmod_submenu = tui_menu_create("Burst Modification settings", 1);
83
tui_menu_add(ui_burstmod_submenu, burstmod_menu_items);
85
tui_menu_add_submenu(parent_submenu, "Burst Modification settings...",
86
"Burst Modification settings",
89
TUI_MENU_BEH_CONTINUE);