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

Method SaveModuleStorage

src/gui/debugger/DebuggerWindow2.cpp:244–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void DebuggerWindow2::SaveModuleStorage(const RPLModule* module, bool delete_breakpoints)
245{
246 auto path = GetModuleStoragePath(module->moduleName2, module->patchCRC);
247 for (auto& module_storage : m_modules_storage)
248 {
249 if (module_storage->data().module_name == module->moduleName2 && module_storage->data().crc_hash == module->patchCRC)
250 {
251 module_storage->data().delete_breakpoints_after_saving = delete_breakpoints;
252 module_storage->Save(path);
253 if (delete_breakpoints) m_modules_storage.erase(std::find(m_modules_storage.begin(), m_modules_storage.end(), module_storage));
254 }
255 }
256
257}
258
259void DebuggerWindow2::LoadModuleStorage(const RPLModule* module)
260{

Callers

nothing calls this directly

Calls 5

dataMethod · 0.45
SaveMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected