Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaobrien committed Oct 2, 2023
1 parent cd65b53 commit 77fa022
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile.emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
7 changes: 0 additions & 7 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 77fa022

Please sign in to comment.