MCPcopy
hub / github.com/pixijs/pixijs / locateFile

Function locateFile

transcoders/basis/basis_transcoder.js:36–41  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

34 ENVIRONMENT_IS_WEB = typeof window === 'object'; ENVIRONMENT_IS_WORKER = typeof importScripts === 'function'; ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof process.versions === 'object' && typeof process.versions.node === 'string'; ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER; let scriptDirectory = '';
35
36 function locateFile(path)
37 {
38 if (Module.locateFile) { return Module.locateFile(path, scriptDirectory); }
39
40 return scriptDirectory + path;
41 } let read_; let readAsync; let readBinary; let setWindowTitle; let nodeFS; let nodePath;
42
43 if (ENVIRONMENT_IS_NODE)
44 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected