Valve Developer And Community Tidbits: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Initial add)
 
No edit summary
Line 2: Line 2:


==Using external libarys with source==
==Using external libarys with source==
Q: Hi,
'''Q: Mailing List'''
 
In order to do certain things in my mod I need to use some third-party
In order to do certain things in my mod I need to use some third-party
libraries which need to do some initialization/termination work.  Is
libraries which need to do some initialization/termination work.  Is
Line 9: Line 8:
loaded?
loaded?


A: Yahn Bernier
'''A: Yahn Bernier'''
 
Sorry if this is a repeat, I had to sign bck onto this list again.
 
Anyway, you are free to add a DllMain to the server or client .dlls.  In
Anyway, you are free to add a DllMain to the server or client .dlls.  In
addition, you might look at dlls/GameInterface.cpp at DllInit(...) and
addition, you might look at dlls/GameInterface.cpp at DllInit(...) and

Revision as of 13:07, 12 December 2005

Use this page to post any misc information from valve developers made on mailing lists, forums or emails.

Using external libarys with source

Q: Mailing List In order to do certain things in my mod I need to use some third-party libraries which need to do some initialization/termination work. Is there a certain place where I can call these functions as the mod is loaded?

A: Yahn Bernier Anyway, you are free to add a DllMain to the server or client .dlls. In addition, you might look at dlls/GameInterface.cpp at DllInit(...) and put your init code in there. I believe there is a corresponding shutdown section.

The other possibility is to create a new CAutoGameSystem and implement the Init/Shutdown methods (see IGameSystem.h and numerous examples in the game and client .dlls).