Browse Source

Platform: random comment whitespace fixes.

pull/680/head
Vladimír Vondruš 11 months ago
parent
commit
990e2a4386
  1. 6
      src/Magnum/Platform/EmscriptenApplication.js
  2. 3
      src/Magnum/Platform/Platform.js.in

6
src/Magnum/Platform/EmscriptenApplication.js

@ -59,7 +59,8 @@ function createMagnumModule(init) {
setStatus: function(message) { setStatus: function(message) {
/* Emscripten calls setStatus("") after a timeout even if the app /* Emscripten calls setStatus("") after a timeout even if the app
aborts. That would erase the crash message, so don't allow that */ aborts. That would erase the crash message, so don't allow
that. */
if(module.status && module.status.innerHTML != "Oops :(") if(module.status && module.status.innerHTML != "Oops :(")
module.status.innerHTML = message; module.status.innerHTML = message;
}, },
@ -101,7 +102,8 @@ function createMagnumModule(init) {
/* Let the user-supplied object overwrite all the above */ /* Let the user-supplied object overwrite all the above */
Object.assign(module, init); Object.assign(module, init);
/* We can do this here because at this point `module.status` should be correct */ /* We can do this here because at this point `module.status` should be
correct */
module.setStatus("Downloading..."); module.setStatus("Downloading...");
return module; return module;

3
src/Magnum/Platform/Platform.js.in

@ -26,7 +26,7 @@
/* JavaScript called by C++ code in EmscriptenApplication and Sdl2Application. /* JavaScript called by C++ code in EmscriptenApplication and Sdl2Application.
Doing it this way instead of having it inline with EM_ASM(), because this Doing it this way instead of having it inline with EM_ASM(), because this
provides an actually usable way of expressing dependencies. With EM_ASM() provides an actually usable way of expressing dependencies. With EM_ASM()
one would instead have to pass one would instead have to pass
-s EXPORTED_FUNCTIONS=[...] -s EXPORTED_FUNCTIONS=[...]
to the linker, and OF COURSE there still isn't a way to combine multiple of to the linker, and OF COURSE there still isn't a way to combine multiple of
@ -141,7 +141,6 @@ mergeInto(LibraryManager.library, {
}; };
window.requestAnimationFrame(drawEvent); window.requestAnimationFrame(drawEvent);
}, },
}); });
// kate: hl javascript // kate: hl javascript

Loading…
Cancel
Save