mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-25 06:00:30 +01:00
Renamed file.c to files.cpp
Renamed huffman.c to huffman.cp Renamed msg.c to msg.cpp Added Pipe class Made loaddef a local variable instead of a global variable for future potential multi-threading support
This commit is contained in:
1 parent
6bdfb4c093
commit
62ff9b7f4c
22 files changed
+2486
-900
No files matched your search
@@ -83,7 +83,36 @@ void BaseIdle( void )
|
||||
}
|
||||
}
|
||||
|
||||
int MainEvent( const Container< Event * >& conev );
|
||||
|
||||
#ifdef _WINDLL
|
||||
void InitModule();
|
||||
void ShutdownModule();
|
||||
|
||||
BOOL APIENTRY DllMain(HMODULE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
switch (ul_reason_for_call)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
BaseInit();
|
||||
InitModule();
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
ShutdownModule();
|
||||
|
||||
L_ShutdownEvents();
|
||||
|
||||
Com_Shutdown();
|
||||
FS_Shutdown(qtrue);
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
#else
|
||||
|
||||
int MainEvent(const Container< Event * >& conev);
|
||||
|
||||
int main( int argc, char **argv )
|
||||
{
|
||||
@@ -132,3 +161,5 @@ int main( int argc, char **argv )
|
||||
Com_Shutdown();
|
||||
FS_Shutdown( qtrue );
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user