Files
Client/Engine/Zalla3D Base Class/StateLog.cpp
LGram16 e067522598 Initial commit: ROW Client source code
Game client codebase including:
- CharacterActionControl: Character and creature management
- GlobalScript: Network, items, skills, quests, utilities
- RYLClient: Main client application with GUI and event handlers
- Engine: 3D rendering engine (RYLGL)
- MemoryManager: Custom memory allocation
- Library: Third-party dependencies (DirectX, boost, etc.)
- Tools: Development utilities

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 16:24:34 +09:00

39 lines
848 B
C++

// StateLog.cpp: implementation of the CStateLog class.
//
//////////////////////////////////////////////////////////////////////
#include "StateLog.h"
#include <Windows.h>
#include "GMMemory.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
FILE *CStateLog::m_fp;
CStateLog::CStateLog()
{
m_fp=NULL;
}
CStateLog::~CStateLog()
{
fclose(m_fp);
}
void CStateLog::Create(char *strFilename)
{
m_fp=fopen(strFilename,"wt");
if(m_fp==NULL)
MessageBox(NULL,"Create Logfile failed",0,0);
}
void CStateLog::Message(char *strMessage, char *strFilename, int strLine)
{
if(m_fp==NULL)
{
CStateLog::Create("c:\\MP_Client.log");
}
fprintf(m_fp,"%-30s _Filename_: %-20s _Line_: %6d\n",strMessage,strFilename,strLine);
}