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

Method writeConfigFile

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

Source from the content-addressed store, hash-verified

73 });
74 }
75 writeConfigFile() {
76 if (!this.EJS.defaultCoreOpts.file || !this.EJS.defaultCoreOpts.settings) {
77 return;
78 }
79 let output = "";
80 for (const k in this.EJS.defaultCoreOpts.settings) {
81 output += k + ' = "' + this.EJS.defaultCoreOpts.settings[k] + '"\n';
82 }
83
84 this.writeFile("/home/web_user/retroarch/userdata/config/" + this.EJS.defaultCoreOpts.file, output);
85 }
86 loadExternalFiles() {
87 return new Promise(async (resolve, reject) => {
88 if (this.EJS.config.externalFiles && this.EJS.config.externalFiles.constructor.name === "Object") {

Callers 1

constructorMethod · 0.95

Calls 1

writeFileMethod · 0.95

Tested by

no test coverage detected