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

Method fromJson

pcsx2-qt/Debugger/DisassemblyView.cpp:72–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool DisassemblyView::fromJson(const JsonValueWrapper& json)
73{
74 if (!DebuggerView::fromJson(json))
75 return false;
76
77 auto start_address = json.value().FindMember("startAddress");
78 if (start_address != json.value().MemberEnd() && start_address->value.IsUint())
79 m_visibleStart = start_address->value.GetUint() & ~3;
80
81 auto go_to_pc_on_pause = json.value().FindMember("goToPCOnPause");
82 if (go_to_pc_on_pause != json.value().MemberEnd() && go_to_pc_on_pause->value.IsBool())
83 m_goToProgramCounterOnPause = go_to_pc_on_pause->value.GetBool();
84
85 auto show_instruction_bytes = json.value().FindMember("showInstructionBytes");
86 if (show_instruction_bytes != json.value().MemberEnd() && show_instruction_bytes->value.IsBool())
87 m_showInstructionBytes = show_instruction_bytes->value.GetBool();
88
89 update();
90
91 return true;
92}
93
94void DisassemblyView::contextCopyAddress()
95{

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