diff --git a/conf/cru/binaries/1280-720.exe b/conf/cru/binaries/1280-720.exe new file mode 100644 index 0000000..da00529 Binary files /dev/null and b/conf/cru/binaries/1280-720.exe differ diff --git a/conf/cru/binaries/1360-768.exe b/conf/cru/binaries/1360-768.exe new file mode 100644 index 0000000..d2a2964 Binary files /dev/null and b/conf/cru/binaries/1360-768.exe differ diff --git a/conf/cru/binaries/1920-1080.exe b/conf/cru/binaries/1920-1080.exe new file mode 100644 index 0000000..3fcc100 Binary files /dev/null and b/conf/cru/binaries/1920-1080.exe differ diff --git a/conf/cru/binaries/640-480.exe b/conf/cru/binaries/640-480.exe new file mode 100644 index 0000000..f64da78 Binary files /dev/null and b/conf/cru/binaries/640-480.exe differ diff --git a/conf/cru/binaries/800-600.exe b/conf/cru/binaries/800-600.exe new file mode 100644 index 0000000..0e6344d Binary files /dev/null and b/conf/cru/binaries/800-600.exe differ diff --git a/conf/cru/cru.ini b/conf/cru/cru.ini deleted file mode 100644 index d39c07d..0000000 --- a/conf/cru/cru.ini +++ /dev/null @@ -1 +0,0 @@ -Todo \ No newline at end of file diff --git a/conf/cru/src/1280-720.txt b/conf/cru/src/1280-720.txt new file mode 100644 index 0000000..bd96e71 --- /dev/null +++ b/conf/cru/src/1280-720.txt @@ -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 diff --git a/conf/cru/src/1360-768.txt b/conf/cru/src/1360-768.txt new file mode 100644 index 0000000..2446d5e --- /dev/null +++ b/conf/cru/src/1360-768.txt @@ -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 diff --git a/conf/cru/src/1920-1080.txt b/conf/cru/src/1920-1080.txt new file mode 100644 index 0000000..3b7b4f4 --- /dev/null +++ b/conf/cru/src/1920-1080.txt @@ -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 diff --git a/conf/cru/src/640-480.txt b/conf/cru/src/640-480.txt new file mode 100644 index 0000000..afaeb22 --- /dev/null +++ b/conf/cru/src/640-480.txt @@ -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 diff --git a/conf/cru/src/800-600.txt b/conf/cru/src/800-600.txt new file mode 100644 index 0000000..07abf44 --- /dev/null +++ b/conf/cru/src/800-600.txt @@ -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 diff --git a/scripts/ps/controls.ps1 b/scripts/ps/controls.ps1 new file mode 100644 index 0000000..f171cbc --- /dev/null +++ b/scripts/ps/controls.ps1 @@ -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" + } + } \ No newline at end of file diff --git a/scripts/ps/display.ps1 b/scripts/ps/display.ps1 new file mode 100644 index 0000000..9380d19 --- /dev/null +++ b/scripts/ps/display.ps1 @@ -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" + } + } \ No newline at end of file diff --git a/scripts/ps/sweetcade.ps1 b/scripts/ps/sweetcade.ps1 index a9720c6..da2ff5e 100644 --- a/scripts/ps/sweetcade.ps1 +++ b/scripts/ps/sweetcade.ps1 @@ -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")) } } \ No newline at end of file