D3DDetour menu

User Tag List

Thread: D3DDetour

Results 1 to 7 of 7
  1. #1
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    D3DDetour

    Basicly, I was dumb, and I ended up writing code to detour EndScene/Present in all the 3 DirectX versions. It's very simple, as you can see in the source code.
    There are probably tons of ways you could have done this otherwise, without dependencies etc. but here it is anyways:

    GitHub D3DDetour

    You need SlimDX (.NET 4.0 version) and WhiteMagic by Apoc.

    Based on this.

    D3DDetour
  2. Thanks tutrakan (1 members gave Thanks to miceiken for this useful post)
  3. #2
    teufel123's Avatar Active Member
    Reputation
    30
    Join Date
    Feb 2008
    Posts
    114
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice and simple, good share.

  4. #3
    rexar29's Avatar Member
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When I try to compile in visual studio 2010 it says:


    Error 1 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D9.cs 28 39 D3DDetour
    Error 2 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D9.cs 29 36 D3DDetour
    Error 3 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D9.cs 34 33 D3DDetour
    Error 4 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D9.cs 35 29 D3DDetour
    Error 5 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D10.cs 44 46 D3DDetour
    Error 6 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D10.cs 45 50 D3DDetour
    Error 7 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D11.cs 48 46 D3DDetour
    Error 8 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D11.cs 49 50 D3DDetour
    Error 9 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D10.cs 51 32 D3DDetour
    Error 10 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D10.cs 52 28 D3DDetour
    Error 11 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D11.cs 55 32 D3DDetour
    Error 12 The name 'Core' does not exist in the current context C:\miceiken-D3DDetour-0725077\D3D11.cs 56 28 D3DDetour

  5. #4
    teufel123's Avatar Active Member
    Reputation
    30
    Join Date
    Feb 2008
    Posts
    114
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First, you doing it wrong, and second, gtfo.

  6. #5
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It kind of requires you to change some code, you need to add WhiteMagic to your project. The Core.cs file is just
    Code:
    using WhiteMagic;
    
    namespace D3DDetour
    {
    public static class Core
        {
            public static readonly Magic Magic = new Magic();
        }
    }

  7. #6
    rexar29's Avatar Member
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by miceiken View Post
    It kind of requires you to change some code, you need to add WhiteMagic to your project. The Core.cs file is just
    Code:
    using WhiteMagic;
    
    namespace D3DDetour
    {
    public static class Core
        {
            public static readonly Magic Magic = new Magic();
        }
    }
    thank you. I did have the whitemagic/slimdx references added. i was just missing the core.cs.

    i just started learning and i appreciate your help and contributions.

  8. #7
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I should have packed it up as a class library instead, but I was in a hurry to get to bed, and I assumed people could figure it out

    EDIT:
    I updated the code now, added a more clear example and I made it a class library.
    Last edited by miceiken; 12-20-2011 at 03:08 PM.

All times are GMT -5. The time now is 03:14 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search