mirror of https://github.com/mgba-emu/mgba.git
Debugger: Make attaching a backend idempotent
This commit is contained in:
parent
a159e37793
commit
8b805b3909
1
CHANGES
1
CHANGES
|
@ -94,6 +94,7 @@ Misc:
|
|||
- Qt: Add .gb/.gbc files to the extension list in Info.plist
|
||||
- Feature: Make -l option explicit
|
||||
- Core: Ability to enumerate and modify video and audio channels
|
||||
- Debugger: Make attaching a backend idempotent
|
||||
|
||||
0.5.2: (2016-12-31)
|
||||
Bugfixes:
|
||||
|
|
|
@ -751,6 +751,9 @@ void CLIDebuggerAttachSystem(struct CLIDebugger* debugger, struct CLIDebuggerSys
|
|||
}
|
||||
|
||||
void CLIDebuggerAttachBackend(struct CLIDebugger* debugger, struct CLIDebuggerBackend* backend) {
|
||||
if (debugger->backend == backend) {
|
||||
return;
|
||||
}
|
||||
if (debugger->backend && debugger->backend->deinit) {
|
||||
debugger->backend->deinit(debugger->backend);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue