mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 00:44:13 +08:00
revert the dumbest change I ever made
This commit is contained in:
parent
f3fbe04409
commit
df5b830d17
@ -88,6 +88,8 @@ namespace
|
|||||||
TextThread* current = nullptr;
|
TextThread* current = nullptr;
|
||||||
MainWindow* This = nullptr;
|
MainWindow* This = nullptr;
|
||||||
|
|
||||||
|
void FindHooks();
|
||||||
|
|
||||||
QString TextThreadString(TextThread& thread)
|
QString TextThreadString(TextThread& thread)
|
||||||
{
|
{
|
||||||
return QString("%1:%2:%3:%4:%5: %6").arg(
|
return QString("%1:%2:%3:%4:%5: %6").arg(
|
||||||
@ -274,7 +276,8 @@ namespace
|
|||||||
void AddHook(QString hook)
|
void AddHook(QString hook)
|
||||||
{
|
{
|
||||||
if (QString hookCode = QInputDialog::getText(This, ADD_HOOK, CODE_INFODUMP, QLineEdit::Normal, hook, &ok, Qt::WindowCloseButtonHint); ok)
|
if (QString hookCode = QInputDialog::getText(This, ADD_HOOK, CODE_INFODUMP, QLineEdit::Normal, hook, &ok, Qt::WindowCloseButtonHint); ok)
|
||||||
if (auto hp = HookCode::Parse(S(hookCode))) try { Host::InsertHook(selectedProcessId, hp.value()); } catch (std::out_of_range) {}
|
if (hookCode.startsWith("S") || hookCode.startsWith("/S")) FindHooks(); // backwards compatibility for old hook search UX
|
||||||
|
else if (auto hp = HookCode::Parse(S(hookCode))) try { Host::InsertHook(selectedProcessId, hp.value()); } catch (std::out_of_range) {}
|
||||||
else Host::AddConsoleOutput(INVALID_CODE);
|
else Host::AddConsoleOutput(INVALID_CODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user