mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 11:52:32 +01:00
- emscripten WIP
This commit is contained in:
parent
970822aa27
commit
5abeec38b1
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user