emscripten: add emscripten platform support (#720)

This commit is contained in:
ololoken 2025-08-08 12:02:22 +02:00 committed by GitHub
commit 4a57df3a45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 9 deletions

View file

@ -434,7 +434,7 @@ StringRef BotStorage::getRunningPath () {
static String path {};
// we're do not do relative (against bot's library) paths on android
if (plat.android) {
if (plat.android || plat.emscripten) {
if (path.empty ()) {
path = strings.joinPath (game.getRunningModName (), folders.addons, folders.bot);
}