mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00
Debugger: Re-allocate callback after loading custom BIOS
This commit is contained in:
parent
38533d77c6
commit
63359bf0f4
@ -3048,6 +3048,12 @@ void DEBUG_ShutDown(Section * /*sec*/) {
|
||||
|
||||
Bitu debugCallback;
|
||||
|
||||
void DEBUG_ReinitCallback(void) {
|
||||
/* this is REQUIRED after loading a custom BIOS */
|
||||
debugCallback=CALLBACK_Allocate();
|
||||
CALLBACK_Setup(debugCallback,DEBUG_EnableDebugger,CB_RETF,"debugger");
|
||||
}
|
||||
|
||||
void DEBUG_Init() {
|
||||
DOSBoxMenu::item *item;
|
||||
|
||||
|
@ -7746,6 +7746,9 @@ fresh_boot:
|
||||
|
||||
void CALLBACK_Init();
|
||||
CALLBACK_Init();
|
||||
|
||||
void DEBUG_ReinitCallback(void);
|
||||
DEBUG_ReinitCallback();
|
||||
}
|
||||
|
||||
DispatchVMEvent(VM_EVENT_RESET_END);
|
||||
|
Loading…
x
Reference in New Issue
Block a user