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

Method SaveSettings

qrenderdoc/Windows/Dialogs/CaptureDialog.cpp:991–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991void CaptureDialog::SaveSettings(const rdcstr &filename)
992{
993 QFile f(filename);
994 if(f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
995 {
996 QVariantMap values;
997 values[lit("settings")] = (QVariant)Settings();
998 SaveToJSON(values, f, JSON_ID, JSON_VER);
999 }
1000 else
1001 {
1002 RDDialog::critical(this, tr("Error saving config"),
1003 tr("Couldn't open path %1 for write.").arg(filename));
1004 }
1005}
1006
1007void CaptureDialog::fillProcessList()
1008{

Callers

nothing calls this directly

Calls 6

SettingsEnum · 0.85
SaveToJSONFunction · 0.85
criticalFunction · 0.85
trFunction · 0.50
openMethod · 0.45
argMethod · 0.45

Tested by

no test coverage detected