diff --git a/apps/playable/src/lib.rs b/apps/playable/src/lib.rs index 4dd33df2..7a228544 100644 --- a/apps/playable/src/lib.rs +++ b/apps/playable/src/lib.rs @@ -41,6 +41,14 @@ fn package_dir(game: &Path, home: &Path, name: &str, why: &str, add: &str) -> R< .ok_or_else(|| format!("a playable {why} with {name}, which this project doesn't have: `raea add {add}` in it")) } +/// runtime/ecs as wasm (sdk/playable/ecs/build.sh), base64 +fn ecs_wasm(home: &Path) -> R { + use base64::Engine; + let f = home.join("sdk/playable/src/host/ecs.wasm"); + let b = std::fs::read(&f).map_err(|e| format!("{}: raea/ecs's world as wasm isn't there ({e}): bash sdk/playable/ecs/build.sh", f.display()))?; + Ok(base64::engine::general_purpose::STANDARD.encode(b)) +} + /// What sound a game makes, as the lint found it: none, media only (