I tried to change some stuff in the codebase of gdevelop (
github.com/4ian/GDevelop). It is a JavaScript project that uses a C++ core. I added a mothod to a C++ Class and Tried to get it to the rest in JavaScript, with the default build system that uses EMscripten. But the emscripten generated code is very weird. This is the official precompiled gdevelop c++ file:
https://s3.amazonaws.com/gdevelop-gdevelop.js/master/latest/libGD.js But my version ( I pasted only the first few lines ) looks like this:
https://pastebin.com/M8kACk5n . Mine doesn't look like javascript and also doesn't work. Any idea how I can fix this problem? I use the latest version of emscripten, I am on windows, the compiling process uses cmake from an Anaconda env and make from MinGW and nodeJS, and of course emscripten.