34736384 / genshin-fps-unlock

unlocks the 60 fps cap
MIT License
2.71k stars 211 forks source link

Reshade injection causing errors after new update #49

Open DzXAnt22 opened 2 years ago

DzXAnt22 commented 2 years ago

It looks like mihoyo must've upgraded their anticheat somehow, because reshade is giving me errors after about 1 minute of playtime. Is there any chance this could be fixed in the future?

leonardo-spy commented 2 years ago

try do it: img1 just add this lines in your code:

MODULEENTRY32 hKernel{};
while (!GetModule(pi.dwProcessId, "KERNELBASE.dll", &hKernel))
    std::this_thread::sleep_for(std::chrono::milliseconds(100));

and move InjectReshade(pi.hProcess); to up (and down kernel code)

DzXAnt22 commented 2 years ago

try do it: img1 just add this lines in your code:

MODULEENTRY32 hKernel{};
while (!GetModule(pi.dwProcessId, "KERNELBASE.dll", &hKernel))
    std::this_thread::sleep_for(std::chrono::milliseconds(100));

and move InjectReshade(pi.hProcess); to up (and down kernel code)

Tried implementing this into the code and it still throws a data error after about a minute of playtime.. :(