it really depends on what you're wanting to do.

the vgui init function is probably the earliest you're going to get, the
only other place that i found i was able to use IsHardware (because the
studiomodel stuff has to be loaded too remember), is uhm.

/*
==========================
  HUD_VidInit

Called when the game initializes
and whenever the vid_mode is changed
so the HUD can reinitialize itself.
==========================
*/
int DLLEXPORT HUD_VidInit( void )

^^^^

in there.

-omega
--
Blackened Interactive - http://www.blackened-interactive.com
FLF:Defiance - http://www.frontline2.com
Wavelength - http://www.thewavelength.net



[EMAIL PROTECTED] wrote:

[ Converted text/html to text/plain ]

Sorry, I thought I'd mentioned that I need the rendering engine to be
initialised.  I need an early place to call IEngineStudio.IsHardware().

Thanks,

Michael



[EMAIL PROTECTED] wrote:


[ Converted text/html to text/plain ]

I'm trying to find a function that is called very early in the client dll.
Whats the earliest function that is called that people know of?


DllMain?...

// Required DLL entry point
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID
lpvReserved)
{
if (fdwReason == DLL_PROCESS_ATTACH)
{
// allocate stuff here
}
else if (fdwReason == DLL_PROCESS_DETACH)
{
// de-allocate stuff here
}

return TRUE;
}

--
Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please


visit:


http://list.valvesoftware.com/mailman/listinfo/hlcoders





_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders







_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to