mirror of https://github.com/stella-emu/stella.git
Restrict RAM searching to hex values only.
This commit is contained in:
parent
43a67ef224
commit
e8543ba075
|
@ -179,6 +179,10 @@ RamWidget::RamWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
|
||||||
// Inputbox which will pop up when searching RAM
|
// Inputbox which will pop up when searching RAM
|
||||||
const StringList labels = { "Value" };
|
const StringList labels = { "Value" };
|
||||||
myInputBox = make_unique<InputTextDialog>(boss, lfont, nfont, labels, " ");
|
myInputBox = make_unique<InputTextDialog>(boss, lfont, nfont, labels, " ");
|
||||||
|
myInputBox->setTextFilter([](char c) {
|
||||||
|
return (c >= 'a' && c <= 'f') || (c >= '0' && c <= '9');
|
||||||
|
}
|
||||||
|
);
|
||||||
myInputBox->setTarget(this);
|
myInputBox->setTarget(this);
|
||||||
|
|
||||||
// Start with these buttons disabled
|
// Start with these buttons disabled
|
||||||
|
|
Loading…
Reference in New Issue