MCPcopy Create free account
hub / github.com/cemu-project/Cemu / LoadModuleStorage

Method LoadModuleStorage

src/gui/debugger/DebuggerWindow2.cpp:259–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void 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
269DebuggerWindow2::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),

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
LoadMethod · 0.45

Tested by

no test coverage detected