MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / writeJSONToPath

Method writeJSONToPath

pcsx2-qt/Debugger/DebuggerSettingsManager.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void DebuggerSettingsManager::writeJSONToPath(std::string path, QJsonDocument jsonDocument)
40{
41 QFile file(QString::fromStdString(path));
42 if (!file.open(QIODevice::WriteOnly))
43 {
44 Console.WriteLnFmt("Debugger Settings Manager: Failed to write Debugger Settings file to path: '{}'", path);
45 return;
46 }
47 file.write(jsonDocument.toJson(QJsonDocument::Indented));
48 file.close();
49}
50
51void DebuggerSettingsManager::loadGameSettings(BreakpointModel* bpModel)
52{

Callers

nothing calls this directly

Calls 5

openMethod · 0.45
WriteLnFmtMethod · 0.45
writeMethod · 0.45
toJsonMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected