Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
RishiRecon
GitHub Repository: RishiRecon/exploits
Path: blob/main/misc/emulator/xnes/snem/buildxnes
28515 views
#!/bin/sh
set -o verbose
OUT=../output
emcc -DEMCCHACK  -O2  -o $OUT/xnes.html *.c \
-s EXPORTED_FUNCTIONS="['_main', '_reboot_emulator', '_native_set_joypad_state', '_renderscreen', '_mainloop', '_native_bitmap_pointer']"  || exit 1
python extract_script.py $OUT/xnes.html > $OUT/xnes.html.js || exit 1
rm $OUT/xnes.html || exit 1
cp snesEmu.html $OUT