- emscripten WIP

This commit is contained in:
Ilya Shurumov 2021-04-10 19:57:16 +06:00
parent 970822aa27
commit 5abeec38b1
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,11 @@
#ifndef PLATFORM_H
#define PLATFORM_H
#if defined(__EMSCRIPTEN__)
#include <emscripten/emscripten.h>
#include <emscripten/html5.h>
#endif
#include "STRINGS.H"
#ifndef PSX

View File

@ -508,8 +508,17 @@ int main(int argc, char** argv)
GPU_printf = printf;
#endif // _DEBUG
config = ini_load("config.ini");
#if 0 // defined(__EMSCRIPTEN__)
// mount the current folder as a NODEFS instance
// inside of emscripten
EM_ASM(
FS.mkdir('/working');
FS.mount(NODEFS, {}, '/working1');
);
#endif
config = ini_load("config.ini");
// best distance
gDrawDistance = 600;