mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
70 lines
1.0 KiB
C++
70 lines
1.0 KiB
C++
#ifdef PRECOMPILEDHEADERS
|
|
#include "Utils All.h"
|
|
#else
|
|
#include "types.h"
|
|
#include "Debug Control.h"
|
|
#include "stdio.h"
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _ANIMSUBSYSTEM_DEBUG
|
|
|
|
void AnimDbgMessage( CHAR8 *strMessage)
|
|
{
|
|
FILE *OutFile;
|
|
|
|
if ((OutFile = fopen("AnimDebug.txt", "a+t")) != NULL)
|
|
{
|
|
fprintf(OutFile, "%s\n", strMessage);
|
|
fclose(OutFile);
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
#ifdef _PHYSICSSUBSYSTEM_DEBUG
|
|
|
|
void PhysicsDbgMessage( CHAR8 *strMessage)
|
|
{
|
|
FILE *OutFile;
|
|
|
|
if ((OutFile = fopen("PhysicsDebug.txt", "a+t")) != NULL)
|
|
{
|
|
fprintf(OutFile, "%s\n", strMessage);
|
|
fclose(OutFile);
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _AISUBSYSTEM_DEBUG
|
|
|
|
void AiDbgMessage( CHAR8 *strMessage)
|
|
{
|
|
FILE *OutFile;
|
|
|
|
if ((OutFile = fopen("AiDebug.txt", "a+t")) != NULL)
|
|
{
|
|
fprintf(OutFile, "%s\n", strMessage);
|
|
fclose(OutFile);
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
void LiveMessage( CHAR8 *strMessage)
|
|
{
|
|
FILE *OutFile;
|
|
|
|
if ((OutFile = fopen("Log.txt", "a+t")) != NULL)
|
|
{
|
|
fprintf(OutFile, "%s\n", strMessage);
|
|
fclose(OutFile);
|
|
}
|
|
}
|