diff --git a/Makefile.emscripten b/Makefile.emscripten index 9ff0e381e9c..8abe6397744 100644 --- a/Makefile.emscripten +++ b/Makefile.emscripten @@ -119,7 +119,7 @@ endif LIBS := -s USE_ZLIB=1 LDFLAGS := -L. --no-heap-copy $(LIBS) -s TOTAL_STACK=$(STACK_MEMORY) -s TOTAL_MEMORY=$(HEAP_MEMORY) -s NO_EXIT_RUNTIME=1 -s EXPORTED_RUNTIME_METHODS="['callMain', 'cwrap', 'getValue', 'FS']" -s EXPORTED_FUNCTIONS=$(EXPORTED_FUNCTIONS) \ - -s EXPORTED_FUNCTIONS=['_main','_malloc','_load_state','_set_volume','_set_variable','_simulate_input','_shader_enable','_get_state_info','_save_state_info','_set_cheat','_cmd_take_screenshot','_system_restart','_cmd_savefiles','_get_core_options','_cmd_save_state','_supports_states','_reset_cheat','_toggleMainLoop','_save_file_path','_get_disk_count','_set_current_disk','_get_current_disk','_refresh_save_files','_toggle_fastforward','_set_ff_ratio','_toggle_slow_motion','_set_sm_ratio','_toggle_rewind','_set_rewind_granularity','_get_current_frame_count'] \ + -s EXPORTED_FUNCTIONS=['_main','_malloc','_load_state','_ejs_set_variable','_simulate_input','_shader_enable','_get_state_info','_save_state_info','_set_cheat','_cmd_take_screenshot','_system_restart','_cmd_savefiles','_get_core_options','_cmd_save_state','_supports_states','_reset_cheat','_toggleMainLoop','_save_file_path','_get_disk_count','_set_current_disk','_get_current_disk','_refresh_save_files','_toggle_fastforward','_set_ff_ratio','_toggle_slow_motion','_set_sm_ratio','_toggle_rewind','_set_rewind_granularity','_get_current_frame_count'] \ -lidbfs.js \ -s ERROR_ON_UNDEFINED_SYMBOLS=0 \ -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0 \ diff --git a/command.c b/command.c index 8b1ea27eb3f..2f3e363e208 100644 --- a/command.c +++ b/command.c @@ -1065,13 +1065,6 @@ void command_event_set_volume( audio_set_float(AUDIO_ACTION_VOLUME_GAIN, new_volume); } -#ifdef EMULATORJS -void set_volume(float new_volume) -{ - audio_set_float(AUDIO_ACTION_VOLUME_GAIN, new_volume); -} -#endif - /** * event_set_mixer_volume: * @gain : amount of gain to be applied to current volume level. diff --git a/runloop.c b/runloop.c index ac1e08ff7d3..44c2c438d16 100644 --- a/runloop.c +++ b/runloop.c @@ -8265,7 +8265,7 @@ void runloop_path_set_special(char **argv, unsigned num_content) #ifdef EMULATORJS -void set_variable(char key[], char value[]) +void ejs_set_variable(char key[], char value[]) { if (strcmp(key, "fps") == 0) { settings_t *settings = config_get_ptr();