@@ -4,14 +4,21 @@ $global:citraInstallDir = $null
4
4
$global :ppssppInstallDir = $null
5
5
$global :yuzuInstallDir = $null
6
6
$global :rpcs3InstallDir = $null
7
- $global :requirementsFolder = $null
8
- $global :retroarchExecutable = $null
9
- $global :retroarchConfigPath = $null
7
+ $global :requirementsFolder = " $PSScriptRoot \requirements"
8
+ # $global:retroarchExecutable = $null
9
+ # $global:retroarchConfigPath = $null
10
+ $global :retroArchPath = " $env: userprofile \.emulationstation\systems\retroarch\"
11
+ # $global:retroArchPath = $null
12
+ $global :retroarchExecutable = " $global :retroArchPath \retroarch.exe"
13
+ $global :retroarchConfigPath = " $global :retroArchPath \retroarch.cfg"
10
14
11
- $global :retroArchPath = $null
12
- $global :coresPath = $null
13
- $global :retroArchBinary = $null
14
- $global :romPath = $null
15
+ $global :coresPath = " $global :retroArchPath \cores"
16
+ $global :retroArchBinary = " $global :requirementsFolder \RetroArch.7z"
17
+
18
+ # $global:coresPath = $null
19
+ # $global:retroArchBinary = $null
20
+ # $global:romPath = $null
21
+ $global :romPath = " $env: userprofile \.emulationstation\roms"
15
22
16
23
17
24
function DownloadFiles {
@@ -151,10 +158,6 @@ function ConfigureScoop {
151
158
scoop install yuzu
152
159
scoop install rpcs3
153
160
154
- $global :citraInstallDir = " $env: userprofile \scoop\apps\citra\current"
155
- $global :ppssppInstallDir = " $env: userprofile \scoop\apps\ppsspp\current"
156
- $global :yuzuInstallDir = " $env: userprofile \scoop\apps\yuzu\current"
157
- $global :rpcs3InstallDir = " $env: userprofile \scoop\apps\rpcs3\current"
158
161
}
159
162
160
163
function Install-AdditionalSoftware {
@@ -164,7 +167,6 @@ function Install-AdditionalSoftware {
164
167
}
165
168
166
169
function AcquireFiles {
167
- $global :requirementsFolder = " $PSScriptRoot \requirements"
168
170
New-Item - ItemType Directory - Force - Path $global :requirementsFolder
169
171
DownloadFiles(" downloads" )
170
172
DownloadFiles(" other_downloads" )
@@ -188,9 +190,7 @@ function Install-EmulationStation {
188
190
189
191
function Setup-EmulatorCores {
190
192
# Retroarch Setup
191
- $global :retroArchPath = " $env: userprofile \.emulationstation\systems\retroarch\"
192
- $global :coresPath = " $global :retroArchPath \cores"
193
- $global :retroArchBinary = " $global :requirementsFolder \RetroArch.7z"
193
+
194
194
195
195
if (Test-Path $global :retroArchBinary ){
196
196
New-Item - ItemType Directory - Force - Path $global :retroArchPath
@@ -269,8 +269,6 @@ function Setup-EmulatorCore([string]$coreName, [string]$zipFileName) {
269
269
270
270
function Start-RetroarchAndGenerateConfig {
271
271
# Start Retroarch and generate a config.
272
- $global :retroarchExecutable = " $global :retroArchPath \retroarch.exe"
273
- $global :retroarchConfigPath = " $global :retroArchPath \retroarch.cfg"
274
272
275
273
if (Test-Path $global :retroarchExecutable ) {
276
274
@@ -319,7 +317,7 @@ function Start-RetroarchAndGenerateConfig {
319
317
320
318
function Setup-Roms {
321
319
# Add roms
322
- $ global :romPath = " $ env: userprofile \.emulationstation\roms "
320
+
323
321
New-Item - ItemType Directory - Force - Path $global :romPath | Out-Null
324
322
325
323
# Path creation + Open-Source / Freeware Rom population
@@ -621,6 +619,11 @@ function Setup-Roms {
621
619
622
620
function Setup-EmulationStationConfig {
623
621
622
+ $global :citraInstallDir = " $env: userprofile \scoop\apps\citra\current"
623
+ $global :ppssppInstallDir = " $env: userprofile \scoop\apps\ppsspp\current"
624
+ $global :yuzuInstallDir = " $env: userprofile \scoop\apps\yuzu\current"
625
+ $global :rpcs3InstallDir = " $env: userprofile \scoop\apps\rpcs3\current"
626
+
624
627
Write-Host " INFO: Setting up Emulation Station Config"
625
628
$esConfigFile = " $env: userprofile \.emulationstation\es_systems.cfg"
626
629
0 commit comments