mirror of
https://github.com/holub/mame
synced 2025-05-28 08:33:05 +03:00
Added check to debug_cpu_set_dasm_override(), because callers do not know if we
are in debug mode or not
This commit is contained in:
parent
fd3f93f96d
commit
45a3d96248
@ -448,7 +448,10 @@ offs_t debug_cpu_disassemble(const device_config *device, char *buffer, offs_t p
|
||||
void debug_cpu_set_dasm_override(const device_config *device, cpu_disassemble_func dasm_override)
|
||||
{
|
||||
cpu_debug_data *info = cpu_get_debug_data(device);
|
||||
info->dasm_override = dasm_override;
|
||||
|
||||
/* since our callers don't know if we are in debug mode or not, we have to do this check */
|
||||
if (info != NULL)
|
||||
info->dasm_override = dasm_override;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user