Skip to content
Genesis-Plus-GX WebAssembly porting
C C++ Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.vscode
assets
cmake
docs
src/main
.editorconfig
.eslintrc.js
.gitignore
CMakeLists.txt
README.md
package-lock.json
package.json
webpack.config.js
webpack.dev.js

README.md

wasm-genplus

Genesis-Plus-GX WebAssembly porting

Setup require

$ source ./emsdk_env.sh
Adding directories to PATH:
PATH += /home/hiromasa/toolchain/emsdk
PATH += /home/hiromasa/toolchain/emsdk/upstream/emscripten
PATH += /home/hiromasa/toolchain/emsdk/node/12.9.1_64bit/bin

Setting environment variables:
EMSDK = /home/hiromasa/toolchain/emsdk
EM_CONFIG = /home/hiromasa/.emscripten
EMSDK_NODE = /home/hiromasa/toolchain/emsdk/node/12.9.1_64bit/bin/node
$ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.39.0

Build

Emscripten

git clone --recursive https://github.com/h1romas4/wasm-genplus.git
cd wasm-genplus
mkdir build && cd build
emcmake cmake ..
emmake make

Webpack

cd ..
npm install
npm run server

ROM file

Put in

docs/roms

src/main/js/index.js

const ROM_PATH = './roms/sonic2.bin';

Play

Firefox or Safari (recommended)

http://localhost:9000

License

Genesis-Plus-GX License

Thanks!

Genesis-Plus-GX

You can’t perform that action at this time.