(state)
| 196 | return new Uint8Array(data); |
| 197 | } |
| 198 | loadState(state) { |
| 199 | try { |
| 200 | this.FS.unlink("game.state"); |
| 201 | } catch(e) {} |
| 202 | this.FS.writeFile("/game.state", state); |
| 203 | this.clearEJSResetTimer(); |
| 204 | this.functions.loadState("game.state", 0); |
| 205 | setTimeout(() => { |
| 206 | try { |
| 207 | this.FS.unlink("game.state"); |
| 208 | } catch(e) {} |
| 209 | }, 5000) |
| 210 | } |
| 211 | screenshot() { |
| 212 | try { |
| 213 | this.FS.unlink("screenshot.png"); |
no test coverage detected