MCPcopy Create free account
hub / github.com/baldurk/renderdoc / Serialize

Method Serialize

qrenderdoc/Code/Interface/PersistantConfig.cpp:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool PersistantConfig::Serialize(const rdcstr &filename)
159{
160 if(!filename.isEmpty())
161 m_Filename = filename;
162
163 QVariantMap values = storeValues();
164
165 QFile f(m_Filename);
166 if(f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
167 return SaveToJSON(values, f, JSON_ID, JSON_VER);
168
169 qWarning() << "Couldn't write to " << QString(m_Filename) << " " << f.errorString();
170
171 return false;
172}
173
174struct LegacyData
175{

Callers

nothing calls this directly

Calls 5

SaveToJSONFunction · 0.85
errorStringMethod · 0.80
QStringFunction · 0.50
isEmptyMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected