it compile

This commit is contained in:
Mohamed Ashraf 2026-03-25 10:00:01 +04:00
parent 8855266638
commit ac1fea0720
2 changed files with 6 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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 = [