tostercx / GTAO_Booster_PoC

Do What The F*ck You Want To Public License
2.84k stars 180 forks source link

GTA 5 on loading(single player and online) multiple overwrites UserNotPresentSession.etl log in C:\Windows\System32\SleepStudy to fix please hook this function #32

Closed CXVUSER closed 3 years ago

CXVUSER commented 3 years ago

EXECUTION_STATE SetThreadExecutionState_hook(EXECUTION_STATE esFlags) { if (esFlags == ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED ) { return SetThreadExecutionState_orig((EXECUTION_STATE) ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED); } return SetThreadExecutionState_orig(esFlags); };