| 613 | } |
| 614 | |
| 615 | void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override |
| 616 | { |
| 617 | auto textfile = GetConfig(this->slot)->GetTextfile(file_type, this->slot); |
| 618 | if (!textfile.has_value()) { |
| 619 | this->Close(); |
| 620 | } else { |
| 621 | this->LoadTextfile(textfile.value(), (this->slot == OWNER_DEITY) ? GAME_DIR : AI_DIR); |
| 622 | } |
| 623 | } |
| 624 | }; |
| 625 | |
| 626 | /** |
no test coverage detected