Skip to content

Commit e8f2ca6

Browse files
committed
added fix to source maps
1 parent 4fc739f commit e8f2ca6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ main_clean.bin:
3838
web:
3939
rm -rf docs
4040
mkdir docs
41-
emcc -O0 -g -Ilibs/include -Ilibs/soloud/include -Ilibs/soloud/include -Ilibs/cimgui -sSTACK_SIZE=1024000 -sEXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']" -sEXPORTED_FUNCTIONS=_malloc,_free,_main -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0 -DWITH_MINIAUDIO=1 -DCIMGUI_USE_GLFW=1 -DCIMGUI_USE_OPENGL3=1 -s USE_GLFW=3 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 --preload-file assets -s MIN_WEBGL_VERSION=2 -g4 --source-map-base https://weremsoft.github.io/MS-DOS-frame-buffer-game-engine/ $(SRC_F) $(SRC_CPP) ./static_libs/cimgui.a -o docs/index.html
42-
41+
emcc -O0 -g -Ilibs/include -Ilibs/soloud/include -Ilibs/soloud/include -Ilibs/cimgui -sSTACK_SIZE=1024000 -sEXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']" -sEXPORTED_FUNCTIONS=_malloc,_free,_main -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0 -DWITH_MINIAUDIO=1 -DCIMGUI_USE_GLFW=1 -DCIMGUI_USE_OPENGL3=1 -s USE_GLFW=3 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 --preload-file assets -s MIN_WEBGL_VERSION=2 -gsource-map $(SRC_F) $(SRC_CPP) ./static_libs/cimgui.a -o docs/index.html
42+
# --source-map-base=https://weremsoft.github.com.io/MS-DOS-frame-buffer-game-engine/
4343
cp -r src docs
4444

4545
clean:

docs/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if (ENVIRONMENT_IS_NODE) {
3131

3232
// --pre-jses are emitted after the Module integration code, so that they can
3333
// refer to Module (if they choose; they can also define Module)
34-
// include: /tmp/tmphe3fvxjt.js
34+
// include: /tmp/tmpwuejjngz.js
3535

3636
Module['expectedDataFileDownloads'] ??= 0;
3737
Module['expectedDataFileDownloads']++;
@@ -216,21 +216,21 @@ Module['FS_createPath']("/assets", "shaders", true, true);
216216

217217
})();
218218

219-
// end include: /tmp/tmphe3fvxjt.js
220-
// include: /tmp/tmp9jnjc16d.js
219+
// end include: /tmp/tmpwuejjngz.js
220+
// include: /tmp/tmp02218kzz.js
221221

222222
// All the pre-js content up to here must remain later on, we need to run
223223
// it.
224224
if (Module['$ww'] || (typeof ENVIRONMENT_IS_PTHREAD != 'undefined' && ENVIRONMENT_IS_PTHREAD)) Module['preRun'] = [];
225225
var necessaryPreJSTasks = Module['preRun'].slice();
226-
// end include: /tmp/tmp9jnjc16d.js
227-
// include: /tmp/tmpczhkp07q.js
226+
// end include: /tmp/tmp02218kzz.js
227+
// include: /tmp/tmp0er73ipu.js
228228

229229
if (!Module['preRun']) throw 'Module.preRun should exist because file support used it; did a pre-js delete it?';
230230
necessaryPreJSTasks.forEach((task) => {
231231
if (Module['preRun'].indexOf(task) < 0) throw 'All preRun tasks that exist before user pre-js code should remain after; did you replace Module or modify Module.preRun?';
232232
});
233-
// end include: /tmp/tmpczhkp07q.js
233+
// end include: /tmp/tmp0er73ipu.js
234234

235235

236236
// Sometimes an existing Module object exists with properties

docs/index.wasm

-60 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)