INNER CODE UNIT · JavaScript
setGlobalFlags
SuperMonster003/Ant-Forest · ant-forest-launcher.js:197
function setGlobalFlags() {
let _dbg_info_sw = $$cfg.debugInfoSwitch;
let _msg_sw = $$cfg.messageShowingSwitch;
let _console_msg_sw = _msg_sw && $$cfg.consoleLogSwitch;
$$flag.show_debug_info = _dbg_info_sw && _console_msg_sw;
$$flag.show_energy_result = _msg_sw && $$cfg.resultShowingSwitch;
$$flag.show_floaty_result = $$cfg.floatyResultSwitch;
_console_msg_sw ? consolex.print.enable() : consolex.print.disable();
let _e_argv = $$app.enginesExecArgv;
if (Object.size(_e_argv, { exclude: 'intent' }) > 0) {
if (!$$und(_e_argv.isDebug)) {
$$flag.show_debug_info = Boolean(_e_argv.isDebug);
}
if ($$und(_e_argv.is_instant_running)) {
_e_argv.is_instant_running = true;