JM_KA/extensions/cocos_inspector/mainPreload.js
2022-08-19 10:51:46 +08:00

60 lines
2.3 KiB
JavaScript

const _0x3271 = [
'YlACI',
'1ojlQBz',
'1359293nemOSu',
'962164cKrNjX',
'parse',
'../cocos-i',
'writeFileS',
'417283AVujAA',
'readConfig',
'stringify',
'config.jso',
'1TbTgIx',
'1005673YlfGNY',
'366566GxxVoZ',
'saveConfig',
'utf-8',
'ync',
'1zcqMvK',
'join',
'307979QDrVPr',
'3571aoLOEf',
'23pQRmMZ',
'onfig.json',
'existsSync',
'nspector-c',
'path',
'NtYxX',
'readFileSy'
];
const _0x51d295 = _0x3812;
function _0x3812(_0x40eb3b, _0x22c54c) {
_0x40eb3b = _0x40eb3b - (0x1 * -0x86f + 0x1f91 * 0x1 + -0xabd * 0x2);
let _0x31559d = _0x3271[_0x40eb3b];
return _0x31559d;
}
(function (_0x7eade2, _0x206395) {
const _0x45a6fe = _0x3812;
while (!![]) {
try {
const _0x11de5d = -parseInt(_0x45a6fe(0x1b7)) + -parseInt(_0x45a6fe(0x1ad)) * -parseInt(_0x45a6fe(0x1ac)) + parseInt(_0x45a6fe(0x1ab)) + -parseInt(_0x45a6fe(0x1bf)) * -parseInt(_0x45a6fe(0x1bb)) + parseInt(_0x45a6fe(0x1c1)) + -parseInt(_0x45a6fe(0x1a9)) * parseInt(_0x45a6fe(0x1c0)) + parseInt(_0x45a6fe(0x1b6)) * parseInt(_0x45a6fe(0x1b5));
if (_0x11de5d === _0x206395)
break;
else
_0x7eade2['push'](_0x7eade2['shift']());
} catch (_0x296c2a) {
_0x7eade2['push'](_0x7eade2['shift']());
}
}
}(_0x3271, -0x109 * -0xe78 + -0x581c6 + -0xd7c9));
let fs = require('fs'), path = require(_0x51d295(0x1b1)), _configPath = path[_0x51d295(0x1aa)](__dirname, _0x51d295(0x1be) + 'n'), __parentConfig = path[_0x51d295(0x1aa)](__dirname, _0x51d295(0x1b9) + _0x51d295(0x1b0) + _0x51d295(0x1ae));
global[_0x51d295(0x1bc)] = () => {
const _0x5d4f54 = _0x51d295, _0x45a6c0 = { 'NtYxX': _0x5d4f54(0x1c3) };
let _0x3f88f4 = '';
return fs[_0x5d4f54(0x1af)](__parentConfig) ? _0x3f88f4 = fs[_0x5d4f54(0x1b3) + 'nc'](__parentConfig, { 'encoding': _0x45a6c0[_0x5d4f54(0x1b2)] }) : _0x3f88f4 = fs[_0x5d4f54(0x1b3) + 'nc'](_configPath, { 'encoding': _0x45a6c0[_0x5d4f54(0x1b2)] }), JSON[_0x5d4f54(0x1b8)](_0x3f88f4);
}, global[_0x51d295(0x1c2)] = _0x153239 => {
const _0x21f507 = _0x51d295, _0x2cd1b4 = { 'YlACI': _0x21f507(0x1c3) };
let _0x3de604 = JSON[_0x21f507(0x1bd)](_0x153239);
fs[_0x21f507(0x1ba) + _0x21f507(0x1a8)](__parentConfig, _0x3de604, { 'encoding': _0x2cd1b4[_0x21f507(0x1b4)] });
};