Fix build with latest hl2sdk-csgo
This commit is contained in:
		
							parent
							
								
									c5efe48aa3
								
							
						
					
					
						commit
						b2b29cb33f
					
				| @ -36,7 +36,11 @@ | |||||||
| 
 | 
 | ||||||
| #if SOURCE_ENGINE >= SE_ORANGEBOX | #if SOURCE_ENGINE >= SE_ORANGEBOX | ||||||
| SH_DECL_HOOK1_void(ICvar, UnregisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); | SH_DECL_HOOK1_void(ICvar, UnregisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); | ||||||
|  | #if SOURCE_ENGINE == SE_CSGO | ||||||
|  | SH_DECL_HOOK2_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *, bool); | ||||||
|  | #else | ||||||
| SH_DECL_HOOK1_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); | SH_DECL_HOOK1_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); | ||||||
|  | #endif | ||||||
| #else | #else | ||||||
| SH_DECL_HOOK1_void(ICvar, RegisterConCommandBase, SH_NOATTRIB, 0, ConCommandBase *); | SH_DECL_HOOK1_void(ICvar, RegisterConCommandBase, SH_NOATTRIB, 0, ConCommandBase *); | ||||||
| #endif | #endif | ||||||
| @ -78,7 +82,11 @@ public: | |||||||
| #endif | #endif | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | #if SOURCE_ENGINE == SE_CSGO | ||||||
|  | 	void LinkConCommandBase(ConCommandBase *pBase, bool unknown) | ||||||
|  | #else | ||||||
| 	void LinkConCommandBase(ConCommandBase *pBase) | 	void LinkConCommandBase(ConCommandBase *pBase) | ||||||
|  | #endif | ||||||
| 	{ | 	{ | ||||||
| 		IConCommandLinkListener *listener = IConCommandLinkListener::head; | 		IConCommandLinkListener *listener = IConCommandLinkListener::head; | ||||||
| 		while (listener) | 		while (listener) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user