Last active
January 30, 2021 01:40
-
-
Save majorpbx/7575802bafef30aaa58b3b4f52ef846f to your computer and use it in GitHub Desktop.
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
# Start - Function to get available Peripherals Components for the given GD-ROM | |
Function Get-DCComponent { | |
Param ( | |
[Parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
$Comp | |
) | |
Switch ($Comp) { | |
# Optional Peripherals Supported | |
"1" { return "Mouse" } | |
"2" { return "Keyboard" } | |
"3" { return "Gun" } | |
# Minimum Controller Requirements | |
"4" { return "Expand Analog Vertical" } | |
"5" { return "Expand Analog Horizontal" } | |
"6" { return "Analog Vertical Controller" } | |
"7" { return "Analog Horizontal Controller" } | |
"8" { return "Analog L Trigger" } | |
"9" { return "Analog R Trigger" } | |
"10" { return "Expanded Direction Buttons" } | |
"11" { return "Z Button" } | |
"12" { return "Y Button" } | |
"13" { return "X Button" } | |
"14" { return "D Button" } | |
"15" { return "C Button" } | |
"16" { return "Start, A, B, and Directions" } | |
# Expansion Devices Supported | |
"17" { return "Memory Card" } | |
"18" { return "Mirophone Device" } | |
"19" { return "Puru Puru Pack" } | |
"20" { return "Other Expansions" } | |
"21" { return "" } | |
"22" { return "" } | |
"23" { return "" } | |
# VGA Supported | |
"24" { return "VGA Supported" } | |
"25" { return "" } | |
"26" { return "" } | |
"27" { return "" } | |
# Uses Windows CE | |
"28" { return "Uses Windows CE" } | |
} | |
} | |
# End - Function to get available Peripherals Components for the given GD-ROM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment