Disable input grab before reload the core.
This commit is contained in:
@@ -9,9 +9,11 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "fpga_io.h"
|
||||
#include "file_io.h"
|
||||
#include "input.h"
|
||||
#include "osd.h"
|
||||
|
||||
#include "fpga_base_addr_ac5.h"
|
||||
#include "fpga_manager.h"
|
||||
@@ -448,6 +450,7 @@ static int make_env(const char *name, const char *cfg)
|
||||
|
||||
int fpga_load_rbf(const char *name, const char *cfg)
|
||||
{
|
||||
OsdDisable();
|
||||
static char path[1024];
|
||||
int ret = 0;
|
||||
|
||||
|
||||
2
menu.cpp
2
menu.cpp
@@ -4083,12 +4083,10 @@ void HandleUI(void)
|
||||
}
|
||||
|
||||
// close OSD now as the new core may not even have one
|
||||
OsdDisable();
|
||||
fpga_load_rbf(SelectedRBF);
|
||||
break;
|
||||
|
||||
case MENU_CORE_FILE_SELECTED2:
|
||||
OsdDisable();
|
||||
fpga_load_rbf(SelectedRBF, SelectedPath);
|
||||
menustate = MENU_NONE1;
|
||||
break;
|
||||
|
||||
@@ -1539,7 +1539,6 @@ void user_io_send_buttons(char force)
|
||||
if ((key_map & BUTTON2) && !(map & BUTTON2))
|
||||
{
|
||||
const char *name = get_rbf_name();
|
||||
OsdDisable();
|
||||
fpga_load_rbf(name[0] ? name : "Archie.rbf");
|
||||
}
|
||||
}
|
||||
@@ -2169,7 +2168,6 @@ void user_io_poll()
|
||||
|
||||
if (!coldreset_req && prev_coldreset_req)
|
||||
{
|
||||
OsdDisable();
|
||||
fpga_load_rbf("menu.rbf");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user