Eliminate need for sv gamedata on sdk2013 and soon css/dods/hl2dm (already on tf2).
This commit is contained in:
		
							parent
							
								
									b8e4510f7e
								
							
						
					
					
						commit
						5e9f27fe6d
					
				@ -130,9 +130,19 @@ bool UTIL_VerifySignature(const void *addr, const char *sig, size_t len)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void GetIServer()
 | 
					void GetIServer()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
#if SOURCE_ENGINE == SE_TF2
 | 
					#if SOURCE_ENGINE == SE_TF2      \
 | 
				
			||||||
 | 
						|| SOURCE_ENGINE == SE_DODS  \
 | 
				
			||||||
 | 
						|| SOURCE_ENGINE == SE_HL2DM \
 | 
				
			||||||
 | 
						|| SOURCE_ENGINE == SE_CSS   \
 | 
				
			||||||
 | 
						|| SOURCE_ENGINE == SE_SDK2013
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (g_SMAPI->GetEngineFactory(false)("VEngineServer022", nullptr))
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
		iserver = engine->GetIServer();
 | 
							iserver = engine->GetIServer();
 | 
				
			||||||
#else
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void *addr;
 | 
						void *addr;
 | 
				
			||||||
	const char *sigstr;
 | 
						const char *sigstr;
 | 
				
			||||||
	char sig[32];
 | 
						char sig[32];
 | 
				
			||||||
@ -191,7 +201,6 @@ void GetIServer()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	/* Finally we have the interface we were looking for */
 | 
						/* Finally we have the interface we were looking for */
 | 
				
			||||||
	iserver = *reinterpret_cast<IServer **>(reinterpret_cast<unsigned char *>(vfunc) + offset);
 | 
						iserver = *reinterpret_cast<IServer **>(reinterpret_cast<unsigned char *>(vfunc) + offset);
 | 
				
			||||||
#endif // !TF2
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void GetResourceEntity()
 | 
					void GetResourceEntity()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user