Skip to content

Commit

Permalink
fix: emscripten: fix default settings for sdl_2mixer port
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Nov 17, 2024
1 parent 007faa3 commit b5048f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions platforms/build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ if ! [ -e "$EMSCRIPTEN_PACTH_FILE" ]; then

git apply --unsafe-paths -p1 --directory="$EMSCRIPTEN_UPSTREAM_ROOT" "$PATCH_DIR/sdl2_image_port.diff"
git apply --unsafe-paths -p1 --directory="$EMSCRIPTEN_UPSTREAM_ROOT" "$PATCH_DIR/sdl2_mixer_port.diff"
git apply --unsafe-paths -p1 --directory="$EMSCRIPTEN_UPSTREAM_ROOT" "$PATCH_DIR/default_settings.diff"

touch "$EMSCRIPTEN_PACTH_FILE"
fi
Expand Down
13 changes: 13 additions & 0 deletions platforms/emscripten/default_settings.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/settings.js b/src/settings.js
index 981c44fa..17ca0078 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -1624,7 +1624,7 @@ var SDL2_IMAGE_FORMATS = [];

// Formats to support in SDL2_mixer. Valid values: ogg, mp3, mod, mid
// [link]
-var SDL2_MIXER_FORMATS = ["ogg"];
+var SDL2_MIXER_FORMATS = [];

// 1 = use sqlite3 from emscripten-ports
// Alternate syntax: --use-port=sqlite3

0 comments on commit b5048f1

Please sign in to comment.