Open DzXAnt22 opened 2 years ago
try do it: 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)
try do it: 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.. :(
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?