HRESULT Update( DECL_EXTERNAL_CODECS_LOC_VARS IInStream *inStream, const CArchiveDatabaseEx *database, const CObjectVector<CUpdateItem> &updateItems, ISequentialOutStream *seqOutStream, IArchiveUpdateCallback *updateCallback, const CUpdateOptions &options) { #ifdef _7Z_VOL if (seqOutStream) #endif return Update2( EXTERNAL_CODECS_LOC_VARS inStream, database, updateItems, seqOutStream, updateCallback, options); #ifdef _7Z_VOL if (options.VolumeMode) return UpdateVolume(inStream, database, updateItems, seqOutStream, updateCallback, options); COutVolumeStream *volStreamSpec = new COutVolumeStream; CMyComPtr<ISequentialOutStream> volStream = volStreamSpec; CMyComPtr<IArchiveUpdateCallback2> volumeCallback; RINOK(updateCallback->QueryInterface(IID_IArchiveUpdateCallback2, (void **)&volumeCallback)); if (!volumeCallback) return E_NOTIMPL; volStreamSpec->Init(volumeCallback, L"a.7z"); volStreamSpec->_options = options; RINOK(Update2(inStream, database, updateItems, volStream, updateCallback, options)); return volStreamSpec->Flush(); #endif }
void Treward::Update() { int z; for (z=0;z<item_count;z++) { if (item_store[z].id>=0) { Update2(&item_store[z]); } } }
void Texplosion::Update() { int z; for (z=0;z<item_count;z++) { if (item_store[z].id>=0) { Update2(&item_store[z]); } } }