| 141 | } |
| 142 | |
| 143 | bool Settings::Save() const { |
| 144 | if (_path.empty()) |
| 145 | return false; |
| 146 | |
| 147 | return _path[1] == L':' ? SaveToFile() : SaveToKey(); |
| 148 | } |
| 149 | |
| 150 | void Settings::Set(PCWSTR name, int value) { |
| 151 | return Set(name, value, SettingType::Int32); |