MCPcopy Create free account
hub / github.com/Artikash/Textractor / ThreadAdded

Function ThreadAdded

GUI/mainwindow.cpp:572–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570 }
571
572 void ThreadAdded(TextThread& thread)
573 {
574 std::wstring threadCode = HookCode::Generate(thread.hp, thread.tp.processId);
575 bool savedMatch = (savedThreadCtx & 0xFFFF) == (thread.tp.ctx & 0xFFFF) && savedThreadCtx2 == thread.tp.ctx2 && savedThreadCode == threadCode;
576 if (savedMatch)
577 {
578 savedThreadCtx = savedThreadCtx2 = savedThreadCode[0] = 0;
579 current = &thread;
580 }
581 QMetaObject::invokeMethod(This, [savedMatch, ttString = TextThreadString(thread) + S(FormatString(L" (%s)", threadCode))]
582 {
583 ui.ttCombo->addItem(ttString);
584 if (savedMatch) ViewThread(ui.ttCombo->count() - 1);
585 });
586 }
587
588 void ThreadRemoved(TextThread& thread)
589 {

Callers

nothing calls this directly

Calls 5

GenerateFunction · 0.85
TextThreadStringFunction · 0.85
SFunction · 0.85
FormatStringFunction · 0.85
ViewThreadFunction · 0.85

Tested by

no test coverage detected