1
0
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:
Zeno Rogue 2021-02-18 15:49:03 +01:00
parent 9499c7f81c
commit cc1cd5655d

View File

@ -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 {