Skip to content

Commit

Permalink
Another couple of stuck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbzdarkid committed Oct 19, 2021
1 parent 9f87e61 commit 318c97d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions App/Main.cpp
Expand Up @@ -236,17 +236,15 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
SetBkMode((HDC)wParam, OPAQUE); // ???
static HBRUSH s_solidBrush = CreateSolidBrush(RGB(255, 255, 255));
return (LRESULT)s_solidBrush;
// return 0;
case HEARTBEAT:
switch ((ProcStatus)wParam) {
case ProcStatus::Stopped:
case ProcStatus::NotRunning:
// Don't discard any settings, just free the trainer.
if (g_trainer) {
g_trainer = nullptr;
SetStringText(g_hwnd, L"Witness Trainer");
SetStringText(g_activateGame, L"Launch game");
}
if (g_trainer) g_trainer = nullptr;
// Also reset the title & launch text, since they can get stuck
SetStringText(g_hwnd, L"Witness Trainer");
SetStringText(g_activateGame, L"Launch game");
break;
case ProcStatus::Reload:
case ProcStatus::NewGame:
Expand Down

0 comments on commit 318c97d

Please sign in to comment.