MCPcopy Create free account
hub / github.com/cemu-project/Cemu / OnOptionsInput

Method OnOptionsInput

src/gui/debugger/DebuggerWindow2.cpp:538–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void DebuggerWindow2::OnOptionsInput(wxCommandEvent& event)
539{
540 switch (event.GetId())
541 {
542 case MENU_ID_OPTIONS_PIN_TO_MAINWINDOW:
543 {
544 const bool value = !m_config.data().pin_to_main;
545 m_config.data().pin_to_main = value;
546 if (value)
547 OnParentMove(m_main_position, m_main_size);
548
549 break;
550 }
551 case MENU_ID_OPTIONS_BREAK_ON_START:
552 {
553 const bool value = !m_config.data().break_on_start;
554 m_config.data().break_on_start = value;
555 debuggerState.breakOnEntry = value;
556 break;
557 }
558 default:
559 return;
560 }
561
562 m_config.Save();
563}
564
565void DebuggerWindow2::OnWindowMenu(wxCommandEvent& event)
566{

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected