Emscripten: load savegames from the browser download directory

This commit is contained in:
Sergii Pylypenko
2021-12-19 03:41:30 +02:00
parent 40f8507342
commit a2b9e32a13
3 changed files with 43 additions and 1 deletions

View File

@@ -132,6 +132,7 @@
<br/>
<input type="submit" id="textinputbutton" value="OK" onclick="Module.finishTextInput();" ></input>
</div>
<input type="file" id="loadfile" style="display:none"></input>
<div>
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" tabindex=-1></canvas>
</div>
@@ -269,6 +270,7 @@
};
document.getElementById("textinput").style.display = "none"; // It's not hiding with CSS
//document.getElementById("loadfile").style.display = "none";
document.getElementById("canvas").focus();
window.onerror = function() {