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

Method fromJson

pcsx2-qt/Debugger/DebuggerView.cpp:137–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137bool DebuggerView::fromJson(const JsonValueWrapper& json)
138{
139 auto custom_display_name = json.value().FindMember("customDisplayName");
140 if (custom_display_name != json.value().MemberEnd() && custom_display_name->value.IsString())
141 {
142 m_custom_display_name = QString(custom_display_name->value.GetString());
143 m_custom_display_name.truncate(DockUtils::MAX_DOCK_WIDGET_NAME_SIZE);
144 }
145
146 auto is_primary = json.value().FindMember("isPrimary");
147 if (is_primary != json.value().MemberEnd() && is_primary->value.IsBool())
148 m_is_primary = is_primary->value.GetBool();
149
150 return true;
151}
152
153void DebuggerView::switchToThisTab()
154{

Callers

nothing calls this directly

Calls 5

FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetStringMethod · 0.80
GetBoolMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected