Device Reset menu

Shout-Out

User Tag List

Thread: Device Reset

Results 1 to 3 of 3
  1. #1
    Master674's Avatar Elite User
    Reputation
    487
    Join Date
    May 2008
    Posts
    578
    Thanks G/R
    2/23
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Device Reset

    Hi,

    I got some small issue when I try to reset my device objects properly.

    If my device must be recreated (Window switch from windowed to fullscreen for example) my Objects also requires to be created again.

    My current Reset Callback looks as following:

    Code:
    HRESULT CALLBACK ResetCallback( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS *pParams )
    {
    	if( pObject )
    		pObject->OnLostDevice();
    
    	HRESULT hRet = CDetours::pReset( pDevice, pParams ); // calls WoW's Reset
    
    	if( pObject )
    		pObject->OnResetDevice();
    
    	return hRet;
    }
    This allows me to reset objects if my device gets lost but not if my device got recreated... How would I check if the device just got recreated?

    Device Reset
  2. #2
    boredevil's Avatar Active Member
    Reputation
    46
    Join Date
    Feb 2008
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a bool coud do the trick. set bAfterReset = true in your resethook.
    if your endscene get´s called, you obviously got a device. if bAfterReset is true, do your initializaation stuff and set it to false again.

    or maybe hook createDevice. don´t know if it´s used after a devicereset
    Last edited by boredevil; 12-23-2011 at 08:14 PM.

  3. #3
    Master674's Avatar Elite User
    Reputation
    487
    Join Date
    May 2008
    Posts
    578
    Thanks G/R
    2/23
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No fixed it...

    It's very easy to detect if device has been recreated... Just compare previous DevicePtr with new DevicePtr... :P

Similar Threads

  1. Farm and reset Mara forever
    By xkillerb in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 08-10-2007, 07:47 PM
  2. Reseting Daily Quests
    By Wesk. in forum World of Warcraft Exploits
    Replies: 13
    Last Post: 06-07-2007, 08:12 AM
  3. reset instances in 2.0
    By sportstud10124 in forum World of Warcraft Exploits
    Replies: 16
    Last Post: 12-16-2006, 08:24 AM
  4. Reset an Instance While Still Inside
    By Matt in forum World of Warcraft Exploits
    Replies: 15
    Last Post: 07-27-2006, 09:04 AM
  5. Instance Resetting
    By Matt in forum World of Warcraft Guides
    Replies: 3
    Last Post: 07-21-2006, 09:18 AM
All times are GMT -5. The time now is 06:13 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