mainPreload.js
2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const _0x4e10 = [
'saveConfig',
'1527090fnWWCL',
'2822daoScx',
'onfig.json',
'JcZiP',
'nspector-c',
'996322rtrVTg',
'1084793AjwsxA',
'path',
'122tLZRQz',
'existsSync',
'274SrbrNX',
'writeFileS',
'readConfig',
'24553EenDrV',
'../cocos-i',
'config.jso',
'join',
'12SEtHzj',
'12808shrIAn',
'SLJOj',
'stringify',
'1320049pWPSwM',
'utf-8',
'parse',
'readFileSy',
'ync',
'1ldgZVl'
];
const _0x1fde5c = _0xc776;
(function (_0x13fd85, _0x4aabad) {
const _0x3a6b99 = _0xc776;
while (!![]) {
try {
const _0x3fc78f = parseInt(_0x3a6b99(0x190)) * -parseInt(_0x3a6b99(0x187)) + parseInt(_0x3a6b99(0x186)) + -parseInt(_0x3a6b99(0x17c)) * parseInt(_0x3a6b99(0x18e)) + -parseInt(_0x3a6b99(0x18b)) + parseInt(_0x3a6b99(0x18c)) + -parseInt(_0x3a6b99(0x17f)) * -parseInt(_0x3a6b99(0x184)) + parseInt(_0x3a6b99(0x17b)) * parseInt(_0x3a6b99(0x177));
if (_0x3fc78f === _0x4aabad)
break;
else
_0x13fd85['push'](_0x13fd85['shift']());
} catch (_0x44d9a5) {
_0x13fd85['push'](_0x13fd85['shift']());
}
}
}(_0x4e10, 0xa44e * -0x1d + -0x1223f9 + 0x3266b9));
let fs = require('fs'), path = require(_0x1fde5c(0x18d)), _configPath = path[_0x1fde5c(0x17a)](__dirname, _0x1fde5c(0x179) + 'n'), __parentConfig = path[_0x1fde5c(0x17a)](__dirname, _0x1fde5c(0x178) + _0x1fde5c(0x18a) + _0x1fde5c(0x188));
function _0xc776(_0x5dde85, _0x38dc1a) {
_0x5dde85 = _0x5dde85 - (-0x21f * 0x6 + -0x1 * 0x2305 + -0x3136 * -0x1);
let _0x168e0b = _0x4e10[_0x5dde85];
return _0x168e0b;
}
global[_0x1fde5c(0x192)] = () => {
const _0x2e481b = _0x1fde5c, _0x2e19bb = { 'SLJOj': _0x2e481b(0x180) };
let _0x105c24 = '';
return fs[_0x2e481b(0x18f)](__parentConfig) ? _0x105c24 = fs[_0x2e481b(0x182) + 'nc'](__parentConfig, { 'encoding': _0x2e19bb[_0x2e481b(0x17d)] }) : _0x105c24 = fs[_0x2e481b(0x182) + 'nc'](_configPath, { 'encoding': _0x2e19bb[_0x2e481b(0x17d)] }), JSON[_0x2e481b(0x181)](_0x105c24);
}, global[_0x1fde5c(0x185)] = _0x4bff5c => {
const _0x5cb032 = _0x1fde5c, _0x50403f = { 'JcZiP': _0x5cb032(0x180) };
let _0x184ea2 = JSON[_0x5cb032(0x17e)](_0x4bff5c);
fs[_0x5cb032(0x191) + _0x5cb032(0x183)](__parentConfig, _0x184ea2, { 'encoding': _0x50403f[_0x5cb032(0x189)] });
};