This commit is contained in:
SrGooglo 2024-03-16 18:24:44 +01:00
parent 49464761d3
commit e1e5d1b66d
1 changed files with 57 additions and 10 deletions

View File

@ -8,7 +8,7 @@ const vars = {
} }
const rfs_files = [ const rfs_files = [
"http://fr01.ragestudio.net:3000" "ws://fr01.ragestudio.net:1050"
] ]
module.exports = { module.exports = {
@ -75,20 +75,67 @@ module.exports = {
} }
] ]
} }
},
region: {
label: "Region",
type: "select",
default: "0",
ui_component_props: {
options: [
{
value: "0",
label: "Japan"
},
{
value: "1",
label: "USA"
},
{
value: "2",
label: "Europe"
},
{
value: "3",
label: "Australia"
},
{
value: "4",
label: "China"
},
{
value: "5",
label: "Korea"
},
{
value: "6",
label: "Taiwan"
}
]
}
} }
}, },
execute: async (pkg) => { execute: async (pkg) => {
await pkg.libraries.rfs.mount(rfs_files[0], undefined, () => { await pkg.libraries.rfs.mount(rfs_files[0])
console.log(`RFS Mounted: ${rfs_files[0]}`) console.log(`RFS Mounted: ${rfs_files[0]}`)
console.log(`Executing game engine...`) console.log(`Executing game engine...`)
setTimeout(() => {
pkg.libraries.exec.file(`yuzu-windows-msvc/yuzu-cmd.exe`, [`${pkg.install_path}/rfs_mount/01002DA013484000_v0/main.nsp`], { await pkg.libraries.exec.file(`yuzu-windows-msvc/yuzu-cmd.exe`, [`${pkg.install_path}/rfs_mount/01002DA013484000_v0/main.nsp`], {
shell: true shell: true
}) })
}, 2000)
})
}, },
close: async (pkg) => { close: async (pkg) => {
await pkg.rfs.unmount(rfs_files[0]) await pkg.rfs.unmount(rfs_files[0])
} }
} }
class YuzuConfig {
static default = {
"language_index": 0,
"region_index": 0,
"use_docked_mode": true,
}
static async write(data) {
}
}