Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
42
Server/ToolProject/GameDBTool/Log.cpp
Normal file
42
Server/ToolProject/GameDBTool/Log.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
// Log.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "GameDBTool.h"
|
||||
#include "Log.h"
|
||||
|
||||
|
||||
// CLog
|
||||
|
||||
IMPLEMENT_DYNAMIC(CLog, CListBox)
|
||||
CLog::CLog()
|
||||
{
|
||||
}
|
||||
|
||||
CLog::~CLog()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CLog, CListBox)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
bool CLog::LogPrint(const char *Format_In, ...)
|
||||
{
|
||||
char LogString[256];
|
||||
char Text[256];
|
||||
|
||||
SYSTEMTIME SysTime;
|
||||
|
||||
if(Format_In == NULL)
|
||||
return false;
|
||||
|
||||
vsprintf(Text, Format_In, (char *)((&Format_In) + 1));
|
||||
|
||||
GetLocalTime(&SysTime);
|
||||
sprintf(LogString, "[%02d:%02d:%02d] %s", SysTime.wHour, SysTime.wMinute, SysTime.wSecond, Text);
|
||||
|
||||
InsertString(0, LogString);
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user