Skip to content

Commit

Permalink
new checkbios
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Jan 27, 2025
1 parent b7bc3d5 commit c316095
Showing 1 changed file with 44 additions and 6 deletions.
50 changes: 44 additions & 6 deletions functions/checkBIOS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,60 @@ function checkDSBios() {
}


function checkRyujinxBios(){
$keys = "$emusPath\ryujinx\portable\system\prod.keys"
$firmware ="$emusPath\ryujinx\portable\bis\system\Contents\registered"

$firmwareExists = Test-Path -Path $firmware -PathType Container
$keysExist = Test-Path -Path $keys -PathType Leaf

if ($firmwareExists -and $keysExist) {
if ((Get-ChildItem -Path $firmware | Measure-Object).Count -gt 0) {
Write-Host "true"
}
else {
Write-Host "false"
}
}else {
Write-Host "false"
}
}

function checkYuzuBios(){
$ryujinxKeys = "$emusPath\ryujinx\portable\system\prod.keys"
$ryujinxFirmware ="$emusPath\ryujinx\portable\bis\system\Contents\registered"
$keys = "$biosPath/yuzu/keys/prod.keys"
$firmware ="$biosPath/yuzu/firmware"

$firmwareExists = Test-Path -Path $ryujinxFirmware -PathType Container
$keysExist = Test-Path -Path $ryujinxKeys -PathType Leaf
$firmwareExists = Test-Path -Path $firmware -PathType Container
$keysExist = Test-Path -Path $keys -PathType Leaf

if ($firmwareExists -and $keysExist) {
if ((Get-ChildItem -Path $ryujinxFirmware | Measure-Object).Count -gt 0) {
if ((Get-ChildItem -Path $firmware | Measure-Object).Count -gt 0) {
Write-Host "true"
}
else {
Write-Host "false"
}
}else {
Write-Host "false"
}
else {
}


function checkCitronBios(){
$keys = "$biosPath/citron/keys/prod.keys"
$firmware ="$biosPath/citron/firmware"

$firmwareExists = Test-Path -Path $firmware -PathType Container
$keysExist = Test-Path -Path $keys -PathType Leaf

if ($firmwareExists -and $keysExist) {
if ((Get-ChildItem -Path $firmware | Measure-Object).Count -gt 0) {
Write-Host "true"
}
else {
Write-Host "false"
}
}else {
Write-Host "false"
}
}

0 comments on commit c316095

Please sign in to comment.