-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full implementation of bigpemu (#80)
- Loading branch information
Showing
8 changed files
with
2,056 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
configs/steam-rom-manager/userData/parsers/emudeck/atari_jaguar-bigpemu.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"parserType": "Glob", | ||
"configTitle": "Atari Jaguar/Jaguar CD - BigPEmu", | ||
"steamCategory": "${Atari Jaguar}", | ||
"executableModifier": "\"${exePath}\"", | ||
"romDirectory": "${romsdirglobal}", | ||
"steamDirectory": "${steamdirglobal}", | ||
"startInDirectory": "", | ||
"titleModifier": "${fuzzyTitle}", | ||
"executableArgs": "/k start /min \"Loading PowerShell Launcher\" \"C:\\Windows\\System32\\WindowsPowershell\\v1.0\\powershell.exe\" -NoProfile -ExecutionPolicy Bypass -Command \"& ${{}C:\\Emulation\\tools\\launchers\\BigPEmu.ps1 -f '${filePath}' ${\\}}\" && exit \" && exit --emudeck", | ||
"onlineImageQueries": "${${fuzzyTitle}}", | ||
"imagePool": "${fuzzyTitle}", | ||
"fetchControllerTemplatesButton": null, | ||
"removeControllersButton": null, | ||
"imageProviders": ["SteamGridDB"], | ||
"defaultTallImage": "", | ||
"defaultHeroImage": "", | ||
"defaultLogoImage": "", | ||
"defaultIcon": "", | ||
"localImages": "", | ||
"localTallImages": "", | ||
"localHeroImages": "", | ||
"localLogoImages": "", | ||
"localIcons": "", | ||
"disabled": false, | ||
"userAccounts": { | ||
"specifiedAccounts": "", | ||
"skipWithMissingDataDir": true, | ||
"useCredentials": true | ||
}, | ||
"parserInputs": { | ||
"glob": "@(atarijaguar|atarijaguarcd)/**/${title}@(j64|.J64|.cof|.COF|.rom|.ROM|.jag|.JAG|.abs|.ABS|.zip|.ZIP|.cue|.CUE|.cdi|.CDI)" | ||
}, | ||
"titleFromVariable": { | ||
"limitToGroups": "", | ||
"caseInsensitiveVariables": false, | ||
"skipFileIfVariableWasNotFound": false, | ||
"tryToMatchTitle": false | ||
}, | ||
"fuzzyMatch": { | ||
"replaceDiacritics": true, | ||
"removeCharacters": true, | ||
"removeBrackets": true | ||
}, | ||
"executable": { | ||
"path": "${retroarchpath}", | ||
"shortcutPassthrough": false, | ||
"appendArgsToExecutable": true | ||
}, | ||
"controllers": { | ||
"ps4": null, | ||
"ps5": null, | ||
"xbox360": null, | ||
"xboxone": null, | ||
"switch_joycon_left": null, | ||
"switch_joycon_right": null, | ||
"switch_pro": null, | ||
"neptune": null | ||
}, | ||
"imageProviderAPIs": { | ||
"SteamGridDB": { | ||
"nsfw": false, | ||
"humor": false, | ||
"styles": [], | ||
"stylesHero": [], | ||
"stylesLogo": [], | ||
"stylesIcon": [], | ||
"imageMotionTypes": ["static"] | ||
} | ||
}, | ||
"defaultImage": { | ||
"tall": "", | ||
"long": "", | ||
"hero": "", | ||
"logo": "", | ||
"icon": "" | ||
}, | ||
"parserId": "164824416518097459", | ||
"version": 17 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
$BigPEmu_configFile="$emusPath/BigPEmu/BigPEmuConfig.bigpcfg" | ||
|
||
function BigPEmu_install(){ | ||
setMSG "Downloading BigPEmu" | ||
$url_BigPEmu = "https://www.richwhitehouse.com/jaguar/builds/BigPEmu_v117.zip" | ||
download $url_BigPEmu "bigpemu.zip" | ||
moveFromTo "$temp\bigpemu" "$emusPath\BigPEmu" | ||
createLauncher "BigPEmu" | ||
} | ||
|
||
function BigPEmu_init(){ | ||
$destination="$emusPath\BigPEmu" | ||
copyFromTo "$env:APPDATA\EmuDeck\backend\configs\bigpemu" "$destination" | ||
BigPEmu_setEmulationFolder | ||
BigPEmu_setupSaves | ||
BigPEmu_setupStorage | ||
} | ||
|
||
function BigPEmu_update(){ | ||
Write-Output "true" | ||
} | ||
|
||
function BigPEmu_setEmulationFolder(){ | ||
sedFile $BigPEmu_configFile "Z:\\home\\deck\\Emulation" "$emulationPath" | ||
sedFile $BigPEmu_configFile ":\" ":\\" | ||
} | ||
|
||
function BigPEmu_setupSaves(){ | ||
|
||
mkdir "$savesPath/bigpemu/saves" -ErrorAction SilentlyContinue | ||
mkdir "$savesPath/bigpemu/states" -ErrorAction SilentlyContinue | ||
|
||
$savesLinkPath = "$env:APPDATA\BigPEmu" | ||
$emuSavePath = "$emulationPath\saves\BigPEmu\saves" | ||
|
||
if (Test-Path $savesLinkPath) { | ||
Write-Host "The symbolic link for 'saves' already exists. Removing it..." | ||
Remove-Item $savesLinkPath -Force -Recurse | ||
} | ||
|
||
New-Item -ItemType SymbolicLink -Path $savesLinkPath -Target $emuSavePath | ||
|
||
$savesLinkPath = "$env:APPDATA\BigPEmu" | ||
$emuSavePath = "$emulationPath\saves\BigPEmu\states" | ||
|
||
if (Test-Path $savesLinkPath) { | ||
Write-Host "The symbolic link for 'states' already exists. Removing it..." | ||
Remove-Item $savesLinkPath -Force -Recurse | ||
} | ||
|
||
New-Item -ItemType SymbolicLink -Path $savesLinkPath -Target $emuSavePath | ||
|
||
} | ||
|
||
function BigPEmu_setupStorage { | ||
|
||
$screenshotsLinkPath = "$emulationPath\storage\BigPEmu" | ||
if (Test-Path $screenshotsLinkPath) { | ||
Write-Host "The symbolic link for 'storage' already exists. Removing it..." | ||
Remove-Item $screenshotsLinkPath -Force | ||
} | ||
|
||
$screenshotsTargetPath = "$env:APPDATA\BigPEmu" | ||
New-Item -ItemType SymbolicLink -Path $screenshotsLinkPath -Target $screenshotsTargetPath | ||
} | ||
|
||
|
||
|
||
function BigPEmu_uninstall(){ | ||
rm -fo -r "$emusPath\BigPEmu" | ||
if($?){ | ||
Write-Output "true" | ||
} | ||
} | ||
|
||
function BigPEmu_IsInstalled(){ | ||
$test=Test-Path -Path "$emusPath\BigPEmu\BigPEmu.exe" | ||
if($test){ | ||
Write-Output "true" | ||
}else{ | ||
Write-Output "false" | ||
} | ||
} | ||
|
||
function BigPEmu_resetConfig(){ | ||
BigPEmu_init | ||
if($?){ | ||
Write-Output "true" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$emulatorFile = "$env:USERPROFILE/EmuDeck/Emulators/BigPEmu/BigPEmu.exe" | ||
$scriptFileName = [System.IO.Path]::GetFileNameWithoutExtension($MyInvocation.MyCommand.Name) | ||
. "$env:USERPROFILE/AppData/Roaming/EmuDeck/backend/functions/allCloud.ps1" | ||
if($args){ | ||
$formattedArgs = $args | ForEach-Object { '"' + $_ + '"' } | ||
} | ||
|
||
emulatorInit $scriptFileName $emulatorFile ($formattedArgs -join ' ') |
Binary file not shown.