First draft of display and control scripts, add CRU configs
This commit is contained in:
parent
f696a414aa
commit
e886567fb8
BIN
conf/cru/binaries/1280-720.exe
Normal file
BIN
conf/cru/binaries/1280-720.exe
Normal file
Binary file not shown.
BIN
conf/cru/binaries/1360-768.exe
Normal file
BIN
conf/cru/binaries/1360-768.exe
Normal file
Binary file not shown.
BIN
conf/cru/binaries/1920-1080.exe
Normal file
BIN
conf/cru/binaries/1920-1080.exe
Normal file
Binary file not shown.
BIN
conf/cru/binaries/640-480.exe
Normal file
BIN
conf/cru/binaries/640-480.exe
Normal file
Binary file not shown.
BIN
conf/cru/binaries/800-600.exe
Normal file
BIN
conf/cru/binaries/800-600.exe
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
Todo
|
8
conf/cru/src/1280-720.txt
Normal file
8
conf/cru/src/1280-720.txt
Normal file
@ -0,0 +1,8 @@
|
||||
00 FF FF FF FF FF FF 00 47 0C 01 00 41 FA 38 78
|
||||
01 1B 01 04 6A 22 1B 78 EA 32 31 A3 57 4C 9D 25
|
||||
11 50 54 00 00 00 81 C0 01 01 01 01 01 01 01 01
|
||||
01 01 01 01 01 01 00 00 00 FC 00 51 58 4C 30 30
|
||||
30 31 0A 20 20 20 20 20 00 00 00 10 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 A1
|
8
conf/cru/src/1360-768.txt
Normal file
8
conf/cru/src/1360-768.txt
Normal file
@ -0,0 +1,8 @@
|
||||
00 FF FF FF FF FF FF 00 47 0C 01 00 41 FA 38 78
|
||||
01 1B 01 04 6A 22 1B 78 EA 32 31 A3 57 4C 9D 25
|
||||
11 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
|
||||
01 01 01 01 01 01 5E 21 50 B0 51 00 1B 30 40 70
|
||||
36 00 54 C0 10 00 00 1E 00 00 00 FC 00 51 58 4C
|
||||
30 30 30 31 0A 20 20 20 20 20 00 00 00 10 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 AD
|
8
conf/cru/src/1920-1080.txt
Normal file
8
conf/cru/src/1920-1080.txt
Normal file
@ -0,0 +1,8 @@
|
||||
00 FF FF FF FF FF FF 00 47 0C 01 00 41 FA 38 78
|
||||
01 1B 01 04 6A 22 1B 78 EA 32 31 A3 57 4C 9D 25
|
||||
11 50 54 00 00 00 D1 C0 01 01 01 01 01 01 01 01
|
||||
01 01 01 01 01 01 00 00 00 FC 00 51 58 4C 30 30
|
||||
30 31 0A 20 20 20 20 20 00 00 00 10 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 51
|
8
conf/cru/src/640-480.txt
Normal file
8
conf/cru/src/640-480.txt
Normal file
@ -0,0 +1,8 @@
|
||||
00 FF FF FF FF FF FF 00 47 0C 01 00 41 FA 38 78
|
||||
01 1B 01 04 6A 22 1B 78 EA 32 31 A3 57 4C 9D 25
|
||||
11 50 54 20 00 00 31 40 01 01 01 01 01 01 01 01
|
||||
01 01 01 01 01 01 00 00 00 FC 00 51 58 4C 30 30
|
||||
30 31 0A 20 20 20 20 20 00 00 00 10 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 51
|
8
conf/cru/src/800-600.txt
Normal file
8
conf/cru/src/800-600.txt
Normal file
@ -0,0 +1,8 @@
|
||||
00 FF FF FF FF FF FF 00 47 0C 01 00 41 FA 38 78
|
||||
01 1B 01 04 6A 22 1B 78 EA 32 31 A3 57 4C 9D 25
|
||||
11 50 54 01 00 00 45 40 01 01 01 01 01 01 01 01
|
||||
01 01 01 01 01 01 00 00 00 FC 00 51 58 4C 30 30
|
||||
30 31 0A 20 20 20 20 20 00 00 00 10 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 5C
|
40
scripts/ps/controls.ps1
Normal file
40
scripts/ps/controls.ps1
Normal file
@ -0,0 +1,40 @@
|
||||
Function fSCControlIOSelection() {
|
||||
Write-Host "---Configure Control Input Board---"
|
||||
Write-Host "Please select a display configuration from the following list:"
|
||||
Write-Host "[1] - J-PAC"
|
||||
Write-Host "[2] - Taito FastIO"
|
||||
Write-Host "[3] - JVS to USB using RS485 adapter, or JVS2X"
|
||||
Write-Host "[0] Other - I'll configure my own controls manually"
|
||||
$vSCControlIOSelectionResponse = Read-Host "Select a number from the list above:"
|
||||
if ($vSCControlIOSelectionResponse -neq [0...3])
|
||||
{
|
||||
Write-Host "SC-DSP-ERR001: INVALID SELECTION"
|
||||
Write-Host "The number you have entered is invalid. Please enter a number from the list and try again"
|
||||
fSCControlIOSelection
|
||||
}
|
||||
elseif ($vSCControlIOSelectionResponse -eq 1)
|
||||
{
|
||||
#TODO - PSUEDOCODE
|
||||
|
||||
}
|
||||
elseif ($vSCControlIOSelectionResponse -eq 2)
|
||||
{
|
||||
#TODO - PSUEDOCODE
|
||||
|
||||
}
|
||||
elseif ($vSCControlIOSelectionResponse -eq 3)
|
||||
{
|
||||
#TODO - PSUEDOCODE
|
||||
|
||||
}
|
||||
elseif ($vSCControlIOSelectionResponse -eq 0)
|
||||
{
|
||||
Write-Host "You have chosen to configure a custom Control Input Board"
|
||||
#TODO
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "SC-CTL-ERR00X: INVALID SELECTION"
|
||||
Write-Host "The number you have entered is invalid. Please enter a number from the list and try again"
|
||||
}
|
||||
}
|
115
scripts/ps/display.ps1
Normal file
115
scripts/ps/display.ps1
Normal file
@ -0,0 +1,115 @@
|
||||
Function fSCDisplayResolutionSelection() {
|
||||
Write-Host "---Configure Display---"
|
||||
Write-Host "Please select a display configuration from the following list:"
|
||||
Write-Host "[1] 640 x 480 - For 31kHz and trisync 4:3 CRTs like Wells-Gardner D9200, Kortek 2914F, Neotec NT-2702, Sanwa PFX, Nanao MS-29XX series or others"
|
||||
Write-Host "[2] 800 x 600 - For 35-37kHz capable 4:3 CRTs like Kortek 3414DF or others (Uncommon)"
|
||||
Write-Host "[3] 1360 x 768 - For stock Vewlix L, D, F, and C LCD screens, and older Namco Noir LCDs"
|
||||
Write-Host "[4] 1920 x 1080 - For stock Vewlix DB, Namco Grigio, Sega All-net PRAS 3, newer Namco Noirs or most other modern LCD cabinets/displays"
|
||||
Write-Host "[0] Other - I'll configure a custom resolution myself in Custom Resolution Utility"
|
||||
$vSCDisplayResolutionSelectionResponse = Read-Host "Select a number from the list above:"
|
||||
if ($vSCDisplayResolutionSelectionResponse -neq [0...4])
|
||||
{
|
||||
Write-Host "SC-DSP-ERR001: INVALID SELECTION"
|
||||
Write-Host "The number you have entered is invalid. Please enter a number from the list and try again"
|
||||
fSCDisplayResolutionSelection
|
||||
}
|
||||
elseif ($vSCDisplayResolutionSelectionResponse -eq 1)
|
||||
{
|
||||
..\..\conf\cru\binaries\640-480.exe /i
|
||||
$? = $vSCDisplayResolutionSelectionExitCode
|
||||
if ($vSCDisplayResolutionSelectionExitCode -neq $true)
|
||||
{
|
||||
Write-Host "SC-DSP-ERR002: CUSTOM RESOLUTION APPLICATION FAILED"
|
||||
Write-Host "For some reason, the custom resolution failed to apply - Please open a issue on the git repository at https://git.sdf.org/camoy/Sweetcade"
|
||||
Write-Host "You can also try applying the custom resolution manually using Custom Resolution Utility installed at:"
|
||||
Write-Host "C:\sc\tools\cru\CRU.EXE"
|
||||
Write-Host "Ignoring this issue for now and moving on in 60 seconds"
|
||||
Start-Sleep -Seconds 60
|
||||
Exit 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Custom resolution has been applied, moving on to the next step in 15 seconds"
|
||||
Start-Sleep -Seconds 15
|
||||
Exit 0
|
||||
}
|
||||
}
|
||||
elseif ($vSCDisplayResolutionSelectionResponse -eq 2)
|
||||
{
|
||||
..\..\conf\cru\binaries\800-600.exe /i
|
||||
$? = $vSCDisplayResolutionSelectionExitCode
|
||||
if ($vSCDisplayResolutionSelectionExitCode -neq $true)
|
||||
{
|
||||
Write-Host "SC-DSP-ERR003: CUSTOM RESOLUTION APPLICATION FAILED"
|
||||
Write-Host "For some reason, the custom resolution failed to apply - Please open a issue on the git repository at https://git.sdf.org/camoy/Sweetcade"
|
||||
Write-Host "You can also try applying the custom resolution manually using Custom Resolution Utility installed at:"
|
||||
Write-Host "C:\sc\tools\cru\CRU.EXE"
|
||||
Write-Host "Ignoring this issue for now and moving on in 60 seconds"
|
||||
Start-Sleep -Seconds 60
|
||||
Exit 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Custom resolution has been applied, moving on to the next step in 15 seconds"
|
||||
Start-Sleep -Seconds 15
|
||||
Exit 0
|
||||
}
|
||||
}
|
||||
elseif ($vSCDisplayResolutionSelectionResponse -eq 3)
|
||||
{
|
||||
..\..\conf\cru\binaries\1360-768.exe /i
|
||||
$? = $vSCDisplayResolutionSelectionExitCode
|
||||
if ($vSCDisplayResolutionSelectionExitCode -neq $true)
|
||||
{
|
||||
Write-Host "SC-DSP-ERR004: CUSTOM RESOLUTION APPLICATION FAILED"
|
||||
Write-Host "For some reason, the custom resolution failed to apply - Please open a issue on the git repository at https://git.sdf.org/camoy/Sweetcade"
|
||||
Write-Host "You can also try applying the custom resolution manually using Custom Resolution Utility installed at:"
|
||||
Write-Host "C:\sc\tools\cru\CRU.EXE"
|
||||
Write-Host "Ignoring this issue for now and moving on in 60 seconds"
|
||||
Start-Sleep -Seconds 60
|
||||
Exit 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Custom resolution has been applied, moving on to the next step in 15 seconds"
|
||||
Start-Sleep -Seconds 15
|
||||
Exit 0
|
||||
}
|
||||
}
|
||||
elseif ($vSCDisplayResolutionSelectionResponse -eq 4)
|
||||
{
|
||||
..\..\conf\cru\binaries\1920-1080.exe /i
|
||||
$? = $vSCDisplayResolutionSelectionExitCode
|
||||
if ($vSCDisplayResolutionSelectionExitCode -neq $true)
|
||||
{
|
||||
Write-Host "SC-DSP-ERR005: CUSTOM RESOLUTION APPLICATION FAILED"
|
||||
Write-Host "For some reason, the custom resolution failed to apply - Please open a issue on the git repository at https://git.sdf.org/camoy/Sweetcade"
|
||||
Write-Host "You can also try applying the custom resolution manually using Custom Resolution Utility installed at:"
|
||||
Write-Host "C:\sc\tools\cru\CRU.EXE"
|
||||
Write-Host "Ignoring this issue for now and moving on in 60 seconds"
|
||||
Start-Sleep -Seconds 60
|
||||
Exit 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Custom resolution has been applied, moving on to the next step in 15 seconds"
|
||||
Start-Sleep -Seconds 15
|
||||
Exit 0
|
||||
}
|
||||
}
|
||||
elseif ($vSCDisplayResolutionSelectionResponse -eq 0)
|
||||
{
|
||||
Write-Host "You have chosen to configure a custom resolution yourself"
|
||||
Write-Host "Opening Custom Resolution Utility now for you"
|
||||
C:\sc\tools\cru\CRU.EXE
|
||||
Write-Host "Now apply your resolution through the appropriate executable. Press the C key to [C]ontinue when you are finished"
|
||||
Read-Host "C"
|
||||
Write-Host "Moving on to the next step in 15 seconds"
|
||||
Start-Sleep -Seconds 15
|
||||
Exit 0
|
||||
}
|
||||
else {
|
||||
Write-Host "SC-DSP-ERR006: INVALID SELECTION"
|
||||
Write-Host "The number you have entered is invalid. Please enter a number from the list and try again"
|
||||
}
|
||||
}
|
@ -6,7 +6,9 @@
|
||||
# makerespt.ps1 (create restore point)
|
||||
# makedirs.ps1 (create directories)
|
||||
# download.ps1 (download supporting tools)
|
||||
# gpudriver.ps1 (install GPU driver)
|
||||
# gpudriver.ps1 (install GPU driver)
|
||||
# display.ps1 (prompt user for desired resolution)
|
||||
# controls.ps1 (prompt user for control method and layout) - TODO
|
||||
|
||||
Write-Host "---------SWEETCADE INSTALL SCRIPT---------"
|
||||
Write-Host "---Retrieving Software License File---"
|
||||
@ -55,6 +57,10 @@ Get-Content -Path .\license.txt | Out-Host -Paging
|
||||
Invoke-Expression (start powershell ((Split-Path $MyInvocation.InvocationName) + "C:\sc\scripts\ps\download.ps1"))
|
||||
Write-Host "---Install GPU Graphics Driver---"
|
||||
Invoke-Expression (start powershell ((Split-Path $MyInvocation.InvocationName) + "C:\sc\scripts\ps\gpudriver.ps1"))
|
||||
Write-Host "---Configure Display Resolution---"
|
||||
Invoke-Expression (start powershell ((Split-Path $MyInvocation.InvocationName) + "C:\sc\scripts\ps\display.ps1"))
|
||||
Write-Host "---Configure Input Control Board---"
|
||||
Invoke-Expression (start powershell ((Split-Path $MyInvocation.InvocationName) + "C:\sc\scripts\ps\controls.ps1"))
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user