Look at weapon_parse.cpp for examples.

   KeyValues *pKV = ReadEncryptedKVFile( filesystem, pszFileName,
pICEKey );
   if ( pKV )
   {
       Parse( pKV );

       pKV->deleteThis();
   }

// meanwhile, in the Parse function...

void Parse( KeyValues *pKeyValuesData )
{
   KeyValues *pKey = pKeyValuesData->GetFirstSubKey();
   while (pKey)
   {
       const char* pszType = pKey->GetString( "type", "default" );
       Assert(!FStrEq(pszType, "default"));

       // Pull whatever other values you like

       pKey = pKey->GetNextKey();
   }
}

--
Jorge "Vino" Rodriguez


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to