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

Method writeFile

data/src/GameManager.js:124–133  ·  view source on GitHub ↗
(path, data)

Source from the content-addressed store, hash-verified

122 });
123 }
124 writeFile(path, data) {
125 const parts = path.split("/");
126 let current = "/";
127 for (let i = 0; i < parts.length - 1; i++) {
128 if (!parts[i].trim()) continue;
129 current += parts[i] + "/";
130 this.mkdir(current);
131 }
132 this.FS.writeFile(path, data);
133 }
134 mkdir(path) {
135 try {
136 this.FS.mkdir(path);

Callers 15

constructorMethod · 0.95
setupPreLoadSettingsMethod · 0.95
writeConfigFileMethod · 0.95
loadExternalFilesMethod · 0.95
initShadersMethod · 0.80
loadStateMethod · 0.80
quickSaveMethod · 0.80
createCueFileMethod · 0.80
loadPpssppAssetsMethod · 0.80
gotDataMethod · 0.80
gotGameDataMethod · 0.80
createBottomMenuBarMethod · 0.80

Calls 1

mkdirMethod · 0.95

Tested by

no test coverage detected