()
| 165 | return cfg; |
| 166 | } |
| 167 | initShaders() { |
| 168 | if (!this.EJS.config.shaders) return; |
| 169 | this.mkdir("/shader"); |
| 170 | for (const shaderFileName in this.EJS.config.shaders) { |
| 171 | const shader = this.EJS.config.shaders[shaderFileName]; |
| 172 | if (typeof shader === "string") { |
| 173 | this.FS.writeFile(`/shader/${shaderFileName}`, shader); |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | clearEJSResetTimer() { |
| 178 | if (this.EJS.resetTimeout) { |
| 179 | clearTimeout(this.EJS.resetTimeout); |
no test coverage detected