|
|
@ -682,10 +682,10 @@ bool DFHackAPIImpl::Attach()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: clean inited stuff here
|
|
|
|
|
|
|
|
bool DFHackAPIImpl::Detach()
|
|
|
|
bool DFHackAPIImpl::Detach()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
p->detach();
|
|
|
|
if (!p->detach())
|
|
|
|
|
|
|
|
return false;
|
|
|
|
if(pm != NULL)
|
|
|
|
if(pm != NULL)
|
|
|
|
delete pm;
|
|
|
|
delete pm;
|
|
|
|
pm = NULL;
|
|
|
|
pm = NULL;
|
|
|
|