blob: ad670f7783ec3b24525c00643d769e0e5d737a2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#include "setupmenu.h"
using namespace std;
cMameSetup g_MameSetup;
cMameSetup::cMameSetup()
{
GeneralStopVDR = true;
strncpy(PathRom, "/usr/local/share/mame/roms", sizeof(PathRom));
}
cMameSetup::~cMameSetup()
{}
cSetupMenu::cSetupMenu() : m_tmpSetup(g_MameSetup)
{
static const char Allowed[] = "aäbcdefghijklmnoöpqrstuüvwxyz0123456789-+_@/&.";
Add(new cMenuEditBoolItem(tr("Stop VDR before play"), &m_tmpSetup.GeneralStopVDR, tr("no"), tr("yes")));
Add(new cMenuEditStrItem(tr("Rom Path"), m_tmpSetup.PathRom, 255, Allowed));
}
cSetupMenu::~cSetupMenu()
{}
void cSetupMenu::Store()
{
g_MameSetup = m_tmpSetup;
SetupStore("GeneralStopVDR", g_MameSetup.GeneralStopVDR);
SetupStore("PathRom", g_MameSetup.PathRom);
}
|