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

Method fromJson

pcsx2-qt/Debugger/RegisterView.cpp:59–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool RegisterView::fromJson(const JsonValueWrapper& json)
60{
61 if (!DebuggerView::fromJson(json))
62 return false;
63
64 auto show_vu0f_float = json.value().FindMember("showVU0FFloat");
65 if (show_vu0f_float != json.value().MemberEnd() && show_vu0f_float->value.IsBool())
66 m_showVU0FFloat = show_vu0f_float->value.GetBool();
67
68 auto show_fpr_float = json.value().FindMember("showFPRFloat");
69 if (show_fpr_float != json.value().MemberEnd() && show_fpr_float->value.IsBool())
70 m_showFPRFloat = show_fpr_float->value.GetBool();
71
72 update();
73
74 return true;
75}
76
77void RegisterView::tabCurrentChanged(int cur)
78{

Callers

nothing calls this directly

Calls 5

FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetBoolMethod · 0.80
updateFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected