// logic.cpp #include "stdafx.h" #include #include #include "CSunOnline.h" #include "logic.h" void GetStringByCode(DWORD dwCode, char* dest, int destLen) { char* psz = NULL; do { //¹®»óÇö 2009-10-30 ¹®ÀÚ¿­ ã´Â ¼ø¼­ º¯°æ //±âÁ¸ stringtable.txt => stringtableforname.txt //º¯°æ stringtableforname.txt => stringtable.txt psz = STRTBL_PARSER2->GetStringByCode(dwCode); if(psz) break; psz = STRTBL_PARSER1->GetStringByCode(dwCode); if(psz) break; psz = STRTBL_PARSER3->GetStringByCode(dwCode); if(psz) break; psz = "NULL"; } while(FALSE); strncpy(dest, psz, destLen); }