From 9762a730ca5a52e37b4fbb25ec57f0c37406b189 Mon Sep 17 00:00:00 2001 From: Ghabry Date: Mon, 21 Nov 2022 23:20:11 +0100 Subject: [PATCH] Emscripten: Rename player instance to easyrpgPlayer --- resources/emscripten/emscripten-shell.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/emscripten/emscripten-shell.html b/resources/emscripten/emscripten-shell.html index 4659c921936..24bd015462d 100644 --- a/resources/emscripten/emscripten-shell.html +++ b/resources/emscripten/emscripten-shell.html @@ -170,7 +170,7 @@ const keys = new Map(); const keysDown = new Map(); const canvas = document.getElementById('canvas'); -let player; +let easyrpgPlayer; let lastTouchedId; // Launch the Player and configure it @@ -180,8 +180,8 @@ saveFs: undefined }).then(function(Module) { // Module is ready - player = Module; - player.initApi(); + easyrpgPlayer = Module; + easyrpgPlayer.initApi(); // Custom code here });