Permalink
Browse files

Fix recent regression with finding engine ptr on CS:S, DoD:S, HL2:DM.

They are still only have engine v21, not yet v22 (let alone v23).
  • Loading branch information...
psychonic committed Sep 14, 2015
1 parent fa9ba78 commit 0ef257db2f89410155483042bec9fba17e064db2
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/provider/provider_ep2.cpp
@@ -114,6 +114,10 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
if (!engine)
{
engine = (IVEngineServer *)((engineFactory)("VEngineServer022", NULL));
if (!engine)
{
engine = (IVEngineServer *)((engineFactory)("VEngineServer021", NULL));
}
}
#else
engine = (IVEngineServer *)((engineFactory)(INTERFACEVERSION_VENGINESERVER, NULL));

0 comments on commit 0ef257d

Please sign in to comment.