mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-24 15:42:54 +00:00
it compile
This commit is contained in:
parent
8855266638
commit
ac1fea0720
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue