mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
load_from for bool settings
This commit is contained in:
parent
9499c7f81c
commit
cc1cd5655d
@ -176,6 +176,9 @@ struct bool_setting : public setting {
|
||||
virtual bool affects(void *v) override { return v == value; }
|
||||
virtual void show_edit_option(char key) override;
|
||||
virtual cld get_cld() override { return *value ? 1 : 0; }
|
||||
virtual void load_from(const string& s) {
|
||||
*value = parseint(s);
|
||||
}
|
||||
};
|
||||
|
||||
struct custom_setting : public setting {
|
||||
|
Loading…
Reference in New Issue
Block a user