예제 #1
0
void __fastcall TDB_packer::btnSaveClick(TObject *Sender)
{
   	CInifile ini						(m_cfgFileName.c_str(), FALSE, FALSE, TRUE);

   	for(int i=0; i<lbIncludeFolders->Items->Count; ++i)
    {
    	AnsiString astr = lbIncludeFolders->Items->Strings[i];
    	ini.w_bool("include_folders",astr.c_str(), TRUE);
    }

   	for(int j=0; j<lbIncludeFiles->Items->Count; ++j)
    {
    	AnsiString astr = lbIncludeFiles->Items->Strings[j];
    	ini.w_bool("include_files",astr.c_str(), TRUE);
    }

}
void HitData::WriteLtx(CInifile& ini, LPCSTR sect, LPCSTR prefix)
{
	string512		buff;
	
	ini.w_fvector3(sect,strconcat(sizeof(buff), buff, prefix ,"pos_0"),Pos0);
	ini.w_fvector3(sect,strconcat(sizeof(buff), buff, prefix ,"pos_1"),Pos1);
	
	ini.w_u16(sect,strconcat(sizeof(buff), buff, prefix ,"BoneID"),BoneID);

	ini.w_bool(sect,strconcat(sizeof(buff), buff, prefix ,"Deadly"),Deadly);

	ini.w_string(sect,strconcat(sizeof(buff), buff, prefix ,"TargetName"),TargetName.c_str());

	ini.w_string(sect,strconcat(sizeof(buff), buff, prefix ,"BoneName"),BoneName.c_str());
};