Make sure the mouse is not grabbed before executing something on Host

This commit is contained in:
Dimitris Panokostas 2020-06-26 00:32:24 +02:00
parent fb0bfdb78c
commit f6a77dc533

View file

@ -14,6 +14,8 @@
#include <assert.h>
#include <string.h>
#include "amiberry_gfx.h"
#include "options.h"
#include "uae.h"
#include "memory.h"
@ -356,6 +358,8 @@ static uae_u32 emulib_ExecuteOnHost(TrapContext* ctx, uaecptr name)
if (trap_get_string(ctx, real_name, name, sizeof real_name) >= sizeof real_name)
return 0; /* ENAMETOOLONG */
SDL_ShowCursor(SDL_ENABLE);
SDL_SetRelativeMouseMode(SDL_FALSE);
system(real_name);
return 1;
}