diff options
Diffstat (limited to 'themes/dist/output.js')
-rw-r--r-- | themes/dist/output.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/themes/dist/output.js b/themes/dist/output.js index 2dd2a7d..79b5f23 100644 --- a/themes/dist/output.js +++ b/themes/dist/output.js @@ -2969,6 +2969,14 @@ var ASM_CONSTS = { function _setTempRet0(val) { setTempRet0(val); } + + function _time(ptr) { + var ret = (Date.now()/1000)|0; + if (ptr) { + HEAP32[((ptr)>>2)] = ret; + } + return ret; + } var GLctx;; var miniTempWebGLFloatBuffersStorage = new Float32Array(288); for (/**@suppress{duplicate}*/var i = 0; i < 288; ++i) { @@ -3051,7 +3059,8 @@ var asmLibraryArg = { "glUniformMatrix4fv": _glUniformMatrix4fv, "glUseProgram": _glUseProgram, "glVertexAttribPointer": _glVertexAttribPointer, - "setTempRet0": _setTempRet0 + "setTempRet0": _setTempRet0, + "time": _time }; var asm = createWasm(); /** @type {function(...*):?} */ |