diff options
Diffstat (limited to 'setupmenu.cpp')
-rwxr-xr-x | setupmenu.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/setupmenu.cpp b/setupmenu.cpp new file mode 100755 index 0000000..ad670f7 --- /dev/null +++ b/setupmenu.cpp @@ -0,0 +1,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); +} |