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

updated hook (some things dont work like medal/chams other things too) #113

Closed
wants to merge 3 commits into from
Closed

Conversation

M1XT3NZ
Copy link

@M1XT3NZ M1XT3NZ commented Jul 28, 2018

Yeah some things dont work because they need a little rewrite but im too lazy so hf

//edit
also chams dont work but aim and esp works didnt really test anything else

Yeah some things dont work because they need a little rewrite but im too lazy so hf
@M1XT3NZ M1XT3NZ changed the title updated hook (some things dont work like medal/skin changer.) updated hook (some things dont work like medal/chams other things too) Jul 28, 2018
@smefpw
Copy link
Owner

smefpw commented Jul 29, 2018

Will add a link to this on the main page. Until every feature is supported (or most popular ones, like chams etc) this will not be pulled

@mistine
Copy link
Collaborator

mistine commented Jul 30, 2018

Pull request rejected.

@mistine mistine closed this Jul 30, 2018
@supernoodled
Copy link
Contributor

Hook_Reset is broken in this, which causes crash when lost focus of window, to fix just replace it with this

HRESULT WINAPI Hook_Reset(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters)
		{
			Client::OnLostDevice();

			Client::OnResetDevice();

			return Reset_o(pDevice, pPresentationParameters);
		}

and then under the function Initialize, specifically underneath this line
device.hook_index(D3D9::TABLE::Reset, Hook_Reset);

add the line
Reset_o = (Reset_t)device.get_original(D3D9::TABLE::Reset);

@OscarRexid
Copy link

@akasarx i did exactly as you said but got 3 errors from it, any idea why?

Error 1: Severity Code Description Project File Line Suppression State
Error (active) E0304 no instance of function template "vfunc_hook::get_original" matches the argument list smef_indigo c:\Users\username\Desktop\smefs-Indigo-Remastered-master\INDIGO\Engine\Hook.cpp 147

ERROR 2: Severity Code Description Project File Line Suppression State
Error C2672 'vfunc_hook::get_original': no matching overloaded function found smef_indigo c:\users\username\desktop\smefs-indigo-remastered-master\indigo\engine\hook.cpp 147

ERROR 3: Severity Code Description Project File Line Suppression State
Error C2783 'T vfunc_hook::get_original(int)': could not deduce template argument for 'T' smef_indigo c:\users\swezl\desktop\smefs-indigo-remastered-master\indigo\engine\hook.cpp 147

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

Successfully merging this pull request may close these issues.

None yet

5 participants