mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-07 17:25:08 +00:00
Fix valid values for gfxmem_size.
This commit is contained in:
@@ -73,7 +73,7 @@ static const PropMap GossamerSettings = {
|
|||||||
{"rambank3_size",
|
{"rambank3_size",
|
||||||
new IntProperty( 0, vector<uint32_t>({0, 8, 16, 64, 128, 256}))},
|
new IntProperty( 0, vector<uint32_t>({0, 8, 16, 64, 128, 256}))},
|
||||||
{"gfxmem_size",
|
{"gfxmem_size",
|
||||||
new IntProperty( 2, vector<uint32_t>({2, 4}))},
|
new IntProperty( 2, vector<uint32_t>({2, 4, 6}))},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const map<string, tuple<PropMap, function<int(void)>>> machines = {
|
static const map<string, tuple<PropMap, function<int(void)>>> machines = {
|
||||||
|
@@ -113,6 +113,7 @@ public:
|
|||||||
/* perform value check */
|
/* perform value check */
|
||||||
if (!this->check_val(result)) {
|
if (!this->check_val(result)) {
|
||||||
LOG_F(ERROR, "Invalid property value %d!", result);
|
LOG_F(ERROR, "Invalid property value %d!", result);
|
||||||
|
this->set_string(to_string(this->int_val));
|
||||||
} else {
|
} else {
|
||||||
this->int_val = result;
|
this->int_val = result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user