From 9ee9b4a9abfac3d4a51595e4fec8adb496a96332 Mon Sep 17 00:00:00 2001 From: camoy Date: Fri, 8 Nov 2024 23:26:48 -0800 Subject: [PATCH] Updated pseudo list with TODOs and added mksubdirs --- pseudo.txt | 18 +++++++++--------- scripts/ps/makedirs.ps1 | 12 +++++++++--- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/pseudo.txt b/pseudo.txt index 4bbf798..7a0555c 100644 --- a/pseudo.txt +++ b/pseudo.txt @@ -11,9 +11,9 @@ --- D:\ consumes remaining disk - scripts/unattend/autounattend.xml --- Correct OS version - scripts/ps/syscheck.ps1 --- Valid product key check - scripts/ps/syscheck.ps1 -- User prompts - TODO ---- Specify monitor resolution - TODO ---- Specify control type, number of buttons, joysticks - TODO +- User prompts +--- Specify monitor resolution +--- Specify control type - Begin install process --- Create restore point for C:\ - scripts/ps/makerespt.ps1 - OS Configuration @@ -46,11 +46,11 @@ ----- Delete C:\sctools - scripts/ps/uninstall.ps1 --- Download game database - scripts/ps/install.ps1 --- Extract/install utilities & drivers - scripts/ps/install.ps1 ---- Copy game content from external storage - scripts/ahk/usbwatch.ahk ------ Scan for *.exe filenames - scripts/ahk/usbwatch.ahk -------- Create folders under C:\sc\content\ based on file names found - scripts/ahk/usbwatch.ahk ---------- Write list of exes to disk - scripts/ahk/usbwatch.ahk ---------- Text processing - scripts/ahk/usbwatch.ahk ---------- Create directories - scripts/ahk/usbwatch.ahk +--- Copy game content from external storage - scripts/ahk/usbwatch.ahk - TODO +----- Scan for *.exe filenames - scripts/ahk/usbwatch.ahk - TODO +------- Create folders under C:\sc\content\ based on file names found - scripts/ahk/usbwatch.ahk - TODO +--------- Write list of exes to disk - scripts/ahk/usbwatch.ahk - TODO +--------- Text processing - scripts/ahk/usbwatch.ahk - TODO +--------- Create directories - scripts/ahk/usbwatch.ahk - TODO --- Enable Unified File Writer - scripts/ps/startuwf.ps1 ----- Create recommit script to write changes to disk - scripts/ps/stopuwf.ps1 diff --git a/scripts/ps/makedirs.ps1 b/scripts/ps/makedirs.ps1 index 9534289..bafcfeb 100644 --- a/scripts/ps/makedirs.ps1 +++ b/scripts/ps/makedirs.ps1 @@ -1,6 +1,6 @@ Write-Host "---Create Directories---" New-Item -Path "C:\sc" -Name "tools" -ItemType "Directory" - if ( ?$ -ne True ) + if ( $? -ne $True ) { Write-Host "SC-DIR-ERR001: CANNOT CREATE NEEDED DIRECTORIES" Write-Host "Creating the following directories has failed." @@ -10,12 +10,18 @@ New-Item -Path "C:\sc" -Name "tools" -ItemType "Directory" Exit 1 } New-Item -Path "C:\sc" -Name "content" -ItemType "Directory" - if ( ?$ -ne True ) + if ( $? -ne $True ) { - Write-Host "SC-DIR-ERR001: CANNOT CREATE NEEDED DIRECTORIES" + Write-Host "SC-DIR-ERR002: CANNOT CREATE NEEDED DIRECTORIES" Write-Host "Creating the following directories has failed." Write-Host "C:\sc\content" Write-Host "Unable to continue. Please check that these locations are writable and that they do not already exist." Start-Sleep -Seconds 60 Exit 1 } +Write-Host "---Create Subdirectories---" +New-Item -Path "C:\sc\tools" -Name "git" -ItemType "Directory" +New-Item -Path "C:\sc\tools" -Name "cru" -ItemType "Directory" +New-Item -Path "C:\sc\tools" -Name "antimicrox" -ItemType "Directory" +New-Item -Path "C:\sc\tools" -Name "attractmode" -ItemType "Directory" +New-Item -Path "C:\sc\tools" -Name "fastio2kb" -ItemType "Directory" \ No newline at end of file