mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 17:18:08 +00:00
return immediately if emulation is already done. this fixes issue #65
This commit is contained in:
parent
8aba3170c6
commit
ab27c6aa04
1 changed files with 3 additions and 0 deletions
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