Skip to content

Commit

Permalink
Maybe the crash is due to power saving? temporary test
Browse files Browse the repository at this point in the history
  • Loading branch information
r57zone committed Feb 23, 2024
1 parent 213e0d2 commit a76f822
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/DSAdvance/DSAdvance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

int main(int argc, char **argv)
{
SetConsoleTitle("DSAdvance 0.9.3");
SetConsoleTitle("DSAdvance 0.9.4");

WNDCLASS AppWndClass = {};
AppWndClass.lpfnWndProc = WindowProc;
Expand Down Expand Up @@ -1090,7 +1090,10 @@ int main(int argc, char **argv)
//ret = vigem_target_x360_update(client, x360, report);
}

if (AppStatus.GamepadEmulationMode == EmuKeyboardAndMouse) XUSB_REPORT_INIT(&report); // Temporary hack(Vigem always, no removal)
if (AppStatus.GamepadEmulationMode == EmuKeyboardAndMouse) { // Temporary hack(Vigem always, no removal)
XUSB_REPORT_INIT(&report);
report.sThumbLX = 1; // Maybe the crash is due to power saving? temporary test
}
ret = vigem_target_x360_update(client, x360, report);

// Battery level display
Expand Down

0 comments on commit a76f822

Please sign in to comment.