| 286 | } |
| 287 | |
| 288 | void ExecutableManager::SetActiveExecutable(int executable_index) { |
| 289 | assert(executable_index < static_cast<int>(this->data.size())); |
| 290 | |
| 291 | if (executable_index < 0) { |
| 292 | this->active_executable.Clear(); |
| 293 | } else { |
| 294 | this->active_executable = this->data[executable_index].path; |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | int ExecutableManager::GetActiveExecutableIndex() const { |
| 299 | for (std::size_t i = 0, n = this->data.size(); i < n; ++i) { |