add manual uninstall functions for callback/io-handler objects
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3721
This commit is contained in:
parent
039e32658a
commit
f1d85a3739
4 changed files with 19 additions and 3 deletions
|
@ -464,7 +464,7 @@ void CALLBACK_RemoveSetup(Bitu callback) {
|
|||
}
|
||||
}
|
||||
|
||||
CALLBACK_HandlerObject::~CALLBACK_HandlerObject(){
|
||||
void CALLBACK_HandlerObject::Uninstall(){
|
||||
if(!installed) return;
|
||||
if(m_type == CALLBACK_HandlerObject::SETUP) {
|
||||
if(vectorhandler.installed){
|
||||
|
@ -485,6 +485,10 @@ CALLBACK_HandlerObject::~CALLBACK_HandlerObject(){
|
|||
CALLBACK_DeAllocate(m_callback);
|
||||
}
|
||||
|
||||
CALLBACK_HandlerObject::~CALLBACK_HandlerObject(){
|
||||
Uninstall();
|
||||
}
|
||||
|
||||
void CALLBACK_HandlerObject::Install(CallBack_Handler handler,Bitu type,const char* description){
|
||||
if(!installed) {
|
||||
installed=true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue