MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / initShaders

Method initShaders

data/src/GameManager.js:167–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 1

constructorMethod · 0.95

Calls 2

mkdirMethod · 0.95
writeFileMethod · 0.80

Tested by

no test coverage detected