diff --git a/frontend/frontend_driver.c b/frontend/frontend_driver.c index bb1a36ceab..55c17bfc63 100644 --- a/frontend/frontend_driver.c +++ b/frontend/frontend_driver.c @@ -131,6 +131,15 @@ void frontend_driver_content_loaded(void) frontend->content_loaded(); } +bool frontend_driver_has_fork(void) +{ + frontend_ctx_driver_t *frontend = frontend_get_ptr(); + + if (!frontend || !frontend->set_fork) + return false; + return true; +} + void frontend_driver_set_fork(bool a, bool b, bool restart) { frontend_ctx_driver_t *frontend = frontend_get_ptr(); diff --git a/frontend/frontend_driver.h b/frontend/frontend_driver.h index 842b8c3146..326813520d 100644 --- a/frontend/frontend_driver.h +++ b/frontend/frontend_driver.h @@ -137,6 +137,9 @@ void frontend_driver_shutdown(bool a); void frontend_driver_deinit(void *args); void frontend_driver_exitspawn(char *s, size_t len); + +bool frontend_driver_has_fork(void); + #ifdef __cplusplus } #endif