@@ -1170,26 +1170,24 @@ configuration { "asmjs" }
1170
1170
" -O" .. _OPTIONS [" OPTIMIZE" ],
1171
1171
" -s USE_SDL=2" ,
1172
1172
" -s USE_SDL_TTF=2" ,
1173
- " --memory-init-file 0" ,
1174
1173
" -s DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=\" ['\\ $$ERRNO_CODES']\" " ,
1175
1174
" -s EXPORTED_FUNCTIONS=\" ['_main', '_malloc', '__ZN15running_machine30emscripten_get_running_machineEv', '__ZN15running_machine17emscripten_get_uiEv', '__ZN15running_machine20emscripten_get_soundEv', '__ZN15mame_ui_manager12set_show_fpsEb', '__ZNK15mame_ui_manager8show_fpsEv', '__ZN13sound_manager4muteEbh', '_SDL_PauseAudio', '_SDL_SendKeyboardKey', '__ZN15running_machine15emscripten_saveEPKc', '__ZN15running_machine15emscripten_loadEPKc', '__ZN15running_machine21emscripten_hard_resetEv', '__ZN15running_machine21emscripten_soft_resetEv', '__ZN15running_machine15emscripten_exitEv']\" " ,
1176
1175
" -s EXPORTED_RUNTIME_METHODS=\" ['cwrap']\" " ,
1177
1176
" -s ERROR_ON_UNDEFINED_SYMBOLS=0" ,
1178
- " -s USE_WEBGL2=1" ,
1179
- " -s LEGACY_GL_EMULATION=1" ,
1180
- " -s GL_UNSAFE_OPTS=0" ,
1177
+ " -s STACK_SIZE=5MB" ,
1178
+ " -s MAX_WEBGL_VERSION=2" ,
1181
1179
" --pre-js " .. _MAKE .esc (MAME_DIR ) .. " src/osd/modules/sound/js_sound.js" ,
1182
1180
" --post-js " .. _MAKE .esc (MAME_DIR ) .. " scripts/resources/emscripten/emscripten_post.js" ,
1183
1181
" --embed-file " .. _MAKE .esc (MAME_DIR ) .. " bgfx/chains@bgfx/chains" ,
1184
1182
" --embed-file " .. _MAKE .esc (MAME_DIR ) .. " bgfx/effects@bgfx/effects" ,
1185
1183
" --embed-file " .. _MAKE .esc (MAME_DIR ) .. " bgfx/shaders/essl@bgfx/shaders/essl" ,
1186
1184
" --embed-file " .. _MAKE .esc (MAME_DIR ) .. " artwork/bgfx@artwork/bgfx" ,
1185
+ " --embed-file " .. _MAKE .esc (MAME_DIR ) .. " artwork/lut-default.png@artwork/lut-default.png" ,
1187
1186
" --embed-file " .. _MAKE .esc (MAME_DIR ) .. " artwork/slot-mask.png@artwork/slot-mask.png" ,
1188
1187
}
1189
1188
if _OPTIONS [" SYMBOLS" ]~= nil and _OPTIONS [" SYMBOLS" ]~= " 0" then
1190
1189
linkoptions {
1191
1190
" -g" .. _OPTIONS [" SYMLEVEL" ],
1192
- " -s DEMANGLE_SUPPORT=1" ,
1193
1191
}
1194
1192
end
1195
1193
if _OPTIONS [" WEBASSEMBLY" ] then
@@ -1205,11 +1203,12 @@ configuration { "asmjs" }
1205
1203
-- define a fixed memory size because allowing memory growth disables asm.js optimizations
1206
1204
linkoptions {
1207
1205
" -s ALLOW_MEMORY_GROWTH=0" ,
1208
- " -s TOTAL_MEMORY=268435456 " ,
1206
+ " -s INITIAL_MEMORY=256MB " ,
1209
1207
}
1210
1208
else
1211
1209
linkoptions {
1212
1210
" -s ALLOW_MEMORY_GROWTH=1" ,
1211
+ " -s INITIAL_MEMORY=24MB"
1213
1212
}
1214
1213
end
1215
1214
archivesplit_size " 20"
0 commit comments