void PersonalShopMapping::Load()
{
    this->Init();
    CDirPath path;
    path.SetFirstPath(FOLDER_DATA);

    this->Read(path.GetNewPath(FILE_CUSTOM_PERSONALSHOPMAPPING));
}
void RepackVendor::ReadConfig()
{
	CDirPath path;
	path.SetFirstPath(FOLDER_ROOT);
	LPSTR pStr	=	path.GetNewPath(FILE_REPACK_CONF);

	//Load repack version strings
	GetPrivateProfileString("Version", "Template", "1.0.0", this->config.temp_ver, sizeof(this->config.temp_ver), pStr);
	GetPrivateProfileString("Version", "Binaries", "1.0.0", this->config.bin_ver, sizeof(this->config.bin_ver), pStr);
	GetPrivateProfileString("Version", "Source", "1.0.0", this->config.src_ver, sizeof(this->config.src_ver), pStr);

	//Load repack vendor info
	GetPrivateProfileString("Repository", "URL", "github.com/denkers", this->config.repo_url, sizeof(this->config.repo_url), pStr);
	GetPrivateProfileString("Repository", "Author", "denker", this->config.author, sizeof(this->config.author), pStr);

	CLogToFile logger = CLogToFile(LOG_NAME_DEBUG, LOG_PATH_DEBUG, true);
	//logger.Output("version: %s, url: %s, author: %s", config.src_ver, config.author);
	logger.Output("File: %s", pStr);
}
BOOL CIllusionTempleEvent::LoadIllusionTempleEventInfo()
{
	LoadIllusionTempleScript(gDirPath.GetNewPath("Event\\IllusionTemple.dat"));

	g_bIllusionTempleEvent					= GetPrivateProfileInt("GameServerInfo","IllusionTempleEvent", 0, gDirPath.GetNewPath("commonserver.cfg"));
	g_iOldScrollDropRate					= GetPrivateProfileInt("GameServerInfo","OldScrollDropRate", 0, gDirPath.GetNewPath("commonserver.cfg"));
	g_iCovenantOfIllusionDropRate			= GetPrivateProfileInt("GameServerInfo","CovenantOfIllusionDropRate", 0, gDirPath.GetNewPath("commonserver.cfg"));
	g_bUseMaxLevelIllusionTemple			= GetPrivateProfileInt("GameServerInfo","UseMaxLevelIllusionTemple", 0, gDirPath.GetNewPath("commonserver.cfg"));
	g_bSaveIllusionTempleRankingPoint		= GetPrivateProfileInt("GameServerInfo","SaveIllusionTempleRankingPoint", 0, gDirPath.GetNewPath("commonserver.cfg"));
	g_iIllusionTempleRewardPercent			= GetPrivateProfileInt("GameServerInfo","IllusionTempleRewardPercent", 0, gDirPath.GetNewPath("commonserver.cfg"));
	g_btIllusionTempleMinUseSkillCnt		= GetPrivateProfileInt("GameServerInfo","IllusionTempleMinUseSkillCnt", 0, gDirPath.GetNewPath("commonserver.cfg"));
	g_iIllusionTempleRewardPercentMaster	= GetPrivateProfileInt("GameServerInfo","IllusionTempleRewardPercentMaster", 0, gDirPath.GetNewPath("commonserver.cfg"));
	return TRUE;
}