Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The condition does not pass. #34

Closed
haipman1 opened this issue Jun 11, 2021 · 1 comment
Closed

The condition does not pass. #34

haipman1 opened this issue Jun 11, 2021 · 1 comment

Comments

@haipman1
Copy link

Thanks a lot for this hook. I have the code, but when it comes to the loop
"if (kiero :: init (kiero :: RenderType :: D3D10) == kiero :: Status :: Success)", then the hook does not go into this loop and bypasses it (even if I use :: Auto). I am using a CSGO hook.
https://pastebin.com/2tSVJ9P7
this is a project: https://mega.nz/folder/twR3iSib#41bValgZfDjturd0gW4__A
Thank you for your help!

@Rebzzel
Copy link
Owner

Rebzzel commented Jun 11, 2021

Hello, @haipman1!

Sometimes you should look at the error code, most likely it will be like this.
Why is this happening? You try to initialize kiero several times, without else statement.
I don't understand why you're trying to do this.

For your particular case, just this is enough:

    if (kiero::init(kiero::RenderType::D3D9) == kiero::Status::Success) {
        MessageBox(0, "kiero::Status::D3D9::Success", "Successful", 0);
        kiero::bind(42, (void**)&oEndScene, hkEndScene);
    }

or:

    if (kiero::init(kiero::RenderType::Auto) == kiero::Status::Success){
        MessageBox(0, "kiero::Status::Auto::Success", "Successful", 0);
        kiero::bind(42, (void**)&oEndScene, hkEndScene);
    }

Good luck!

@Rebzzel Rebzzel closed this as completed Jun 18, 2021
@Rebzzel Rebzzel mentioned this issue Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants