MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / parseCCSettingsScript

Function parseCCSettingsScript

src/core/cocos3x/engine3x.js:203–213  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

201 if (hashed) {
202 try {
203 const s = JSON.parse(fs.readFileSync(path.join(srcDir, hashed), 'utf-8'));
204 return { flavor: '3.x', settings: s };
205 } catch {
206 // fall through
207 }
208 }
209 }
210
211 // 2.4.x marker: src/settings.js containing `window._CCSettings = { ... }`.
212 const settings2xPath = path.join(sourcePath, 'src', 'settings.js');
213 if (fs.existsSync(settings2xPath)) {
214 try {
215 const text = fs.readFileSync(settings2xPath, 'utf-8');
216 if (text.includes('_CCSettings') || text.includes('CCSettings')) {

Callers 1

detectProjectFlavorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected