Пример #1
0
bool PSFLoader::Load(bool show)
{
	if(!psf_f.IsOpened()) return false;

	m_show_log = show;

	if(!LoadHeader()) return false;
	if(!LoadKeyTable()) return false;
	if(!LoadDataTable()) return false;

	return true;
}
Пример #2
0
bool PSFLoader::Load(bool show)
{
	if(!psf_f.IsOpened()) return false;

	m_show_log = show;

	if(!LoadHdr()) return false;
	if(!LoadKeyTable()) return false;
	if(!LoadValuesTable()) return false;

	if(show)
	{
		ConLog.SkipLn();
		for(uint i=0; i<m_table.GetCount(); ++i)
		{
			ConLog.Write("%s", m_table[i].mb_str());
		}
		ConLog.SkipLn();
	}

	return true;
}