| 257 | } |
| 258 | |
| 259 | void DebuggerWindow2::LoadModuleStorage(const RPLModule* module) |
| 260 | { |
| 261 | auto path = GetModuleStoragePath(module->moduleName2, module->patchCRC); |
| 262 | bool already_loaded = std::any_of(m_modules_storage.begin(), m_modules_storage.end(), [path](const std::unique_ptr<XMLDebuggerModuleConfig>& debug) { return debug->GetFilename() == path; }); |
| 263 | if (!path.empty() && !already_loaded) |
| 264 | { |
| 265 | m_modules_storage.emplace_back(new XMLDebuggerModuleConfig(path, { module->moduleName2, module->patchCRC, module, false }))->Load(); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | DebuggerWindow2::DebuggerWindow2(wxFrame& parent, const wxRect& display_size) |
| 270 | : wxFrame(&parent, wxID_ANY, _("PPC Debugger"), wxDefaultPosition, wxSize(1280, 300), wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN | wxRESIZE_BORDER | wxFRAME_FLOAT_ON_PARENT), |