From ac1fea07209257f76744c48d20a3f93e5460e6c8 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Wed, 25 Mar 2026 10:00:01 +0400 Subject: [PATCH] it compile --- Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp | 6 +++++- Minecraft.Client/meson.build | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp index d9b52d283..f996bf895 100644 --- a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp +++ b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp @@ -31,7 +31,11 @@ int strcasecmp(const char* a, const char* b) { return ca - cb; } #define MINIAUDIO_IMPLEMENTATION +#ifndef __EMSCRIPTEN__ #include "miniaudio.h" +#else +#include "../../Emscripten/miniaudio.h" +#endif // __EMSCRIPTEN__ #undef STB_VORBIS_HEADER_ONLY #include "stb_vorbis.c" #endif @@ -2425,4 +2429,4 @@ ConsoleSoundEngine::ScheduledSound::ScheduledSound(int iSound, float x, float y, this->volume = volume; this->pitch = pitch; this->delay = delay; -} \ No newline at end of file +} diff --git a/Minecraft.Client/meson.build b/Minecraft.Client/meson.build index fe9945e4a..6ed01f57f 100644 --- a/Minecraft.Client/meson.build +++ b/Minecraft.Client/meson.build @@ -60,7 +60,7 @@ is_emscripten = host_machine.system() == 'emscripten' emcc_link_args = [] if is_emscripten - emcc_link_args += ['--preload-file', meson.global_source_root() + '/build/Minecraft.Client/Common@Common'] + emcc_link_args += ['--preload-file', meson.global_source_root() + '/build/Minecraft.Assets@Common'] endif client_dependencies = [