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 = [
"http://fr01.ragestudio.net:3000"
"ws://fr01.ragestudio.net:1050"
]
module.exports = {
@ -32,7 +32,7 @@ module.exports = {
},
configs: {
language: {
label:"Language",
label: "Language",
type: "select",
default: "en",
ui_component_props: {
@ -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) => {
await pkg.libraries.rfs.mount(rfs_files[0], undefined, () => {
console.log(`RFS Mounted: ${rfs_files[0]}`)
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`], {
shell: true
})
}, 2000)
await pkg.libraries.rfs.mount(rfs_files[0])
console.log(`RFS Mounted: ${rfs_files[0]}`)
console.log(`Executing game engine...`)
await pkg.libraries.exec.file(`yuzu-windows-msvc/yuzu-cmd.exe`, [`${pkg.install_path}/rfs_mount/01002DA013484000_v0/main.nsp`], {
shell: true
})
},
close: async (pkg) => {
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) {
}
}