mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 00:25:27 +00:00
return immediately if emulation is already done. this fixes issue #65
This commit is contained in:
parent
8aba3170c6
commit
ab27c6aa04
3
uc.c
3
uc.c
|
@ -507,6 +507,9 @@ uc_err uc_emu_stop(uch handle)
|
||||||
// invalid handle
|
// invalid handle
|
||||||
return UC_ERR_UCH;
|
return UC_ERR_UCH;
|
||||||
|
|
||||||
|
if (uc->emulation_done)
|
||||||
|
return UC_ERR_OK;
|
||||||
|
|
||||||
uc->stop_request = true;
|
uc->stop_request = true;
|
||||||
// exit the current TB
|
// exit the current TB
|
||||||
cpu_exit(uc->current_cpu);
|
cpu_exit(uc->current_cpu);
|
||||||
|
|
Loading…
Reference in a new issue