import{a8 as s}from"./index-BrhME0Dw.js";const o=s("config",{state:()=>({config:{yuzu:{},suyu:{},ryujinx:{},setting:{}},currentVersion:"",hasNewVersion:!1}),actions:{async reloadConfig(){const e=await window.eel.get_config()();e.code===0&&(this.config=e.data)},initCurrentVersion(){window.eel.get_current_version()(e=>{e.code===0?this.currentVersion=e.data:this.currentVersion="未知"})},checkUpdate(e){window.eel.check_update()(i=>{i.code===0&&i.data&&(this.hasNewVersion=!0),(e||this.hasNewVersion)&&window.$bus.emit("showNewVersionDialog",{hasNewVersion:this.hasNewVersion,latestVersion:i.msg})})}},getters:{yuzuConfig(e){return e.config.yuzu}}});export{o as u};
