| 23 | } |
| 24 | |
| 25 | void StudioConfig::load() |
| 26 | { |
| 27 | ParamFile cfg; |
| 28 | if (cfg.Parse(configPath().c_str()) != LSOK) |
| 29 | return; |
| 30 | |
| 31 | for (auto& f : intFields) |
| 32 | if (auto* e = cfg.FindEntry(f.name)) |
| 33 | this->*f.ptr = (int)*e; |
| 34 | } |
| 35 | |
| 36 | void StudioConfig::save() const |
| 37 | { |
no test coverage detected