diff --git a/Makefile.emscripten b/Makefile.emscripten index 32ad2e0fe3..fb768854a9 100644 --- a/Makefile.emscripten +++ b/Makefile.emscripten @@ -16,6 +16,7 @@ OBJ := DEFINES := -DRARCH_INTERNAL -DHAVE_MAIN -s USE_PTHREADS=$(PTHREAD) DEFINES += -DHAVE_FILTERS_BUILTIN +HAVE_PATCH = 1 HAVE_DSP_FILTER = 1 HAVE_VIDEO_FILTER = 1 HAVE_OVERLAY = 1 diff --git a/tasks/task_content.c b/tasks/task_content.c index 02a04eb17f..f9fb184fc7 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -1916,7 +1916,9 @@ bool task_push_start_dummy_core(content_ctx_info_t *content_info) rarch_system_info_t *sys_info = &runloop_st->system; const char *path_dir_system = settings->paths.directory_system; bool check_firmware_before_loading = settings->bools.check_firmware_before_loading; +#ifdef HAVE_PATCH uint16_t rarch_flags = retroarch_get_flags(); +#endif if (!content_info) return false; @@ -2007,7 +2009,9 @@ bool task_push_load_content_from_playlist_from_menu( bool force_core_reload = settings->bools.always_reload_core_on_run_content; #endif bool check_firmware_before_loading = settings->bools.check_firmware_before_loading; +#ifdef HAVE_PATCH uint16_t rarch_flags = retroarch_get_flags(); +#endif content_ctx.flags = 0; @@ -2488,8 +2492,9 @@ static bool task_load_content_internal( bool set_supports_no_game_enable = settings->bools.set_supports_no_game_enable; const char *path_dir_system = settings->paths.directory_system; const char *path_dir_cache = settings->paths.directory_cache; - +#ifdef HAVE_PATCH uint16_t rarch_flags = retroarch_get_flags(); +#endif content_ctx.flags = 0; if (check_firmware_before_loading) @@ -2988,7 +2993,9 @@ bool content_init(void) bool set_supports_no_game_enable = settings->bools.set_supports_no_game_enable; const char *path_dir_system = settings->paths.directory_system; const char *path_dir_cache = settings->paths.directory_cache; +#ifdef HAVE_PATCH uint16_t rarch_flags = retroarch_get_flags(); +#endif content_file_list_free(p_content->content_list); p_content->content_list = NULL;