barkey/packages/frontend/src/utility/libopenmpt
2025-03-25 16:14:53 -04:00
..
libopenmpt.js merge upstream 2025-03-25 16:14:53 -04:00
libopenmpt.wasm merge upstream 2025-03-25 16:14:53 -04:00
LICENSE merge upstream 2025-03-25 16:14:53 -04:00
readme.md merge upstream 2025-03-25 16:14:53 -04:00

modifications made to libopenmpt.js (can be taken from https://lib.openmpt.org/libopenmpt/download/):

at the beginning of the file:

// @ts-nocheck
/* eslint-disable */

at the end of the file:

Module.UTF8ToString = UTF8ToString;
Module.writeAsciiToMemory = writeAsciiToMemory;
export { Module }

replace

wasmBinaryFile="libopenmpt.wasm"

with

wasmBinaryFile=new URL("./libopenmpt.wasm", import.meta.url).href