Don't use VInterfaceMatch when wanting explicit iface version.
This commit is contained in:
		
							parent
							
								
									2bd91dd93b
								
							
						
					
					
						commit
						f6d7fd4949
					
				@ -72,10 +72,10 @@ bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen
 | 
				
			|||||||
	GET_V_IFACE_ANY(GetServerFactory, gamedll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL);
 | 
						GET_V_IFACE_ANY(GetServerFactory, gamedll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL);
 | 
				
			||||||
#if SOURCE_ENGINE == SE_TF2 || SOURCE_ENGINE == SE_CSS || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_HL2DM || SOURCE_ENGINE == SE_SDK2013
 | 
					#if SOURCE_ENGINE == SE_TF2 || SOURCE_ENGINE == SE_CSS || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_HL2DM || SOURCE_ENGINE == SE_SDK2013
 | 
				
			||||||
	// Shim to avoid hooking shims
 | 
						// Shim to avoid hooking shims
 | 
				
			||||||
	engine = (IVEngineServer *)ismm->VInterfaceMatch(ismm->GetEngineFactory(), "VEngineServer023");
 | 
						engine = (IVEngineServer *)ismm->GetEngineFactory()("VEngineServer023", nullptr);
 | 
				
			||||||
	if (!engine)
 | 
						if (!engine)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		engine = (IVEngineServer *)ismm->VInterfaceMatch(ismm->GetEngineFactory(), "VEngineServer022");
 | 
							engine = (IVEngineServer *)ismm->GetEngineFactory()("VEngineServer022", nullptr);
 | 
				
			||||||
		if (!engine)
 | 
							if (!engine)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if (error && maxlen)
 | 
								if (error && maxlen)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user