From e3efa89293ced30e853a593765d2b12567efa122 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 1 May 2021 20:10:03 -0700 Subject: [PATCH] get rid of the dumb startup sound --- bin/itchio_push_win.bat | 2 +- custom/4coder_default_hooks.cpp | 12 ------------ custom/generated/command_metadata.h | 4 ++-- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/bin/itchio_push_win.bat b/bin/itchio_push_win.bat index 9f3d09d0..53c60e07 100644 --- a/bin/itchio_push_win.bat +++ b/bin/itchio_push_win.bat @@ -22,4 +22,4 @@ butler push %flags% %dir%\super_x86\4coder-%fv%-super-win-x86.zip 4coder/4coder popd -:END \ No newline at end of file +:END diff --git a/custom/4coder_default_hooks.cpp b/custom/4coder_default_hooks.cpp index 4a08dad6..90102e53 100644 --- a/custom/4coder_default_hooks.cpp +++ b/custom/4coder_default_hooks.cpp @@ -22,18 +22,6 @@ CUSTOM_DOC("Default command for responding to a startup event") { def_audio_init(); - - Scratch_Block scratch(app); - FILE *file = def_search_normal_fopen(scratch, "audio_test/raygun_zap.wav", "rb"); - if (file != 0){ - Audio_Clip test_clip = audio_clip_from_wav_FILE(&global_permanent_arena, file); - fclose(file); - - local_persist Audio_Control test_control = {}; - test_control.channel_volume[0] = 1.f; - test_control.channel_volume[1] = 1.f; - def_audio_play_clip(test_clip, &test_control); - } } { diff --git a/custom/generated/command_metadata.h b/custom/generated/command_metadata.h index 253cb33c..018cb3f6 100644 --- a/custom/generated/command_metadata.h +++ b/custom/generated/command_metadata.h @@ -311,8 +311,8 @@ static Command_Metadata fcoder_metacmd_table[252] = { { PROC_LINKS(decrease_face_size, 0), false, "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 757 }, { PROC_LINKS(default_file_externally_modified, 0), false, "default_file_externally_modified", 32, "Notes the external modification of attached files by printing a message.", 72, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 2065 }, { PROC_LINKS(default_startup, 0), false, "default_startup", 15, "Default command for responding to a startup event", 49, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 7 }, -{ PROC_LINKS(default_try_exit, 0), false, "default_try_exit", 16, "Default command for responding to a try-exit event", 50, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 45 }, -{ PROC_LINKS(default_view_input_handler, 0), false, "default_view_input_handler", 26, "Input consumption loop for default view behavior", 48, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 89 }, +{ PROC_LINKS(default_try_exit, 0), false, "default_try_exit", 16, "Default command for responding to a try-exit event", 50, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 33 }, +{ PROC_LINKS(default_view_input_handler, 0), false, "default_view_input_handler", 26, "Input consumption loop for default view behavior", 48, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 77 }, { PROC_LINKS(delete_alpha_numeric_boundary, 0), false, "delete_alpha_numeric_boundary", 29, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 161 }, { PROC_LINKS(delete_char, 0), false, "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 79 }, { PROC_LINKS(delete_current_scope, 0), false, "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 112 },