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

Method mountFileSystems

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

Source from the content-addressed store, hash-verified

65 }
66 }
67 mountFileSystems() {
68 return new Promise(async resolve => {
69 this.mkdir("/data");
70 this.mkdir("/data/saves");
71 this.FS.mount(this.FS.filesystems.IDBFS, { autoPersist: true }, "/data/saves");
72 this.FS.syncfs(true, resolve);
73 });
74 }
75 writeConfigFile() {
76 if (!this.EJS.defaultCoreOpts.file || !this.EJS.defaultCoreOpts.settings) {
77 return;

Callers 1

downloadFilesMethod · 0.80

Calls 1

mkdirMethod · 0.95

Tested by

no test coverage detected