|
|
@ -262,8 +262,17 @@ Items::Items(DFContextShared * d_)
|
|
|
|
d->d = d_;
|
|
|
|
d->d = d_;
|
|
|
|
d->owner = d_->p;
|
|
|
|
d->owner = d_->p;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bool Items::Start(){return true;}
|
|
|
|
|
|
|
|
bool Items::Finish(){return true;}
|
|
|
|
bool Items::Start()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool Items::Finish()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Items::~Items()
|
|
|
|
Items::~Items()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Finish();
|
|
|
|
Finish();
|
|
|
@ -285,10 +294,10 @@ bool Items::getItemData(uint32_t itemptr, DFHack::t_item &item)
|
|
|
|
Process * p = d->owner;
|
|
|
|
Process * p = d->owner;
|
|
|
|
ItemDesc * desc;
|
|
|
|
ItemDesc * desc;
|
|
|
|
|
|
|
|
|
|
|
|
it = d->descVTable.find(itemptr);
|
|
|
|
uint32_t vtable = p->readDWord(itemptr);
|
|
|
|
|
|
|
|
it = d->descVTable.find(vtable);
|
|
|
|
if(it == d->descVTable.end())
|
|
|
|
if(it == d->descVTable.end())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint32_t vtable = p->readDWord(itemptr);
|
|
|
|
|
|
|
|
desc = new ItemDesc(vtable, p);
|
|
|
|
desc = new ItemDesc(vtable, p);
|
|
|
|
d->descVTable[vtable] = desc;
|
|
|
|
d->descVTable[vtable] = desc;
|
|
|
|
d->descType[desc->mainType] = desc;
|
|
|
|
d->descType[desc->mainType] = desc;
|
|
|
|