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:
76
Server/ManageTool/ChatParser/stdafx.cpp
Normal file
76
Server/ManageTool/ChatParser/stdafx.cpp
Normal file
@@ -0,0 +1,76 @@
|
||||
// stdafx.cpp : ǥ<><C7A5> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ϸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
// ChatParser.pch<63><68> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>.
|
||||
// stdafx.obj<62><6A><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե˴ϴ<CBB4>.
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "ChatParserSetup.h"
|
||||
|
||||
/// \brief <20><><EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD> Ű<><C5B0> ini <20>¾<EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD>õ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
/// \param szSection <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ǹ<EFBFBD>
|
||||
/// \param szKey <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>Ī<EFBFBD>Ǵ<EFBFBD> Ű
|
||||
const char* GetMyINIString(const char* szSection, const char* szKey)
|
||||
{
|
||||
const char* szResult = CChatParserSetup::GetInstance().GetString(szSection, szKey, 0);
|
||||
|
||||
if(0 == szResult)
|
||||
{
|
||||
CString strErr;
|
||||
strErr.Format("Setup string load failed! - key: %s", szKey);
|
||||
AfxMessageBox(strErr, MB_ICONSTOP);
|
||||
return "???";
|
||||
}
|
||||
|
||||
return szResult;
|
||||
}
|
||||
|
||||
const int GetChatType(const char* szType)
|
||||
{
|
||||
int iCount = 17;
|
||||
char* strFind[] = {
|
||||
"NORMAL",
|
||||
"PARTY",
|
||||
"FRIEND",
|
||||
"GUILD",
|
||||
"CLIENT_LOG",
|
||||
"STALL",
|
||||
"SHOUT",
|
||||
"ADMIN_NORMAL_CHAT",
|
||||
"ADMIN_SHOUT",
|
||||
"WHISPER",
|
||||
"TRADE",
|
||||
"CAMP_SHOP",
|
||||
"NOTIFY_CHAR_INFO",
|
||||
"FIND_PARTY",
|
||||
"ENEMY_CHECK",
|
||||
"DICE",
|
||||
"NOTICE"
|
||||
};
|
||||
int FindID[] = {
|
||||
NORMAL,
|
||||
PARTY,
|
||||
FRIEND,
|
||||
GUILD,
|
||||
CLIENT_LOG,
|
||||
STALL,
|
||||
SHOUT,
|
||||
ADMIN_NORMAL_CHAT,
|
||||
ADMIN_SHOUT,
|
||||
WHISPER,
|
||||
TRADE,
|
||||
CAMP_SHOP,
|
||||
NOTIFY_CHAR_INFO,
|
||||
FIND_PARTY,
|
||||
ENEMY_CHECK,
|
||||
DICE,
|
||||
NOTICE
|
||||
};
|
||||
|
||||
|
||||
for(int i = 0; i < iCount; ++i)
|
||||
{
|
||||
if(strcmp(szType, strFind[i]) == 0)
|
||||
return FindID[i]+1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user