global.__qgRequire=require,global.__vivoRequire=require,Object.defineProperty(global,"GameGlobal",{get:()=>global,set(e){console.warn("微信环境下GameGlobal相当于global，不需要自定义修改")}}),require("./wxadapter/weixin-qg-adapter.js"),global.wx.requirePlugin=(e,a)=>{if(a&&(global.pluginEnv=a),console.warn(`---wx.requirePlugin ${e}`,a),global._plugin_name_){try{if(global._plugin_name_===e){const e="/"+global._plugin_name_+"/plugin.json",a=global.qg.getFileSystemManager().readFileSync(e,"utf8");let i=JSON.parse(a).main;i||(i="index.js");let n="/"+global._plugin_name_+"/"+i;return n.endsWith(".js")||(n+=".js"),require("."+n)}}catch(e){}e.startsWith("/")||(e="/"+e),e.includes(global._plugin_name_)||(e="/"+global._plugin_name_+e),e.endsWith(".js")||(e+=".js")}if("UnityPlugin"===e){try{Object.defineProperty(global,"managerConfig",{get(){return this._managerConfig},set(e){this._managerConfig=e,e&&e.loadingPageConfig&&e.loadingPageConfig.materialConfig&&e.loadingPageConfig.materialConfig.backgroundImage&&(console.log(e.loadingPageConfig),window.qg.createCustomizeLoading&&(window._loading=window.qg.createCustomizeLoading({background:e.loadingPageConfig.materialConfig.backgroundImage})))}}),Object.defineProperty(global,"manager",{get(){return this._manager},set(e){e&&e.hideLoadingPage&&(e._hideLoadingPage=e.hideLoadingPage,e.hideLoadingPage=()=>{console.log("hideLoadingPage..."),window._loading&&window._loading.remove(),this._hideLoadingPage&&this._hideLoadingPage()}),this._manager=e}}),console.warn("微信Unity小游戏转换，不需要去修改unityNamespace及Module~")}catch(e){console.error(e)}return require("WxUnityPlugin.js")}return e.startsWith("/")||(e="/"+e),e.endsWith(".js")||(e+=".js"),require("."+e)};