Skip to content

Commit f582025

Browse files
committed
Merge branch 'early-unstable' into early
# Conflicts: # functions/ToolScripts/emuDeckSaveSync.ps1
2 parents 1aa0e10 + 8aacfd6 commit f582025

File tree

258 files changed

+12054
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+12054
-202
lines changed

android/functions/ToolScripts/Android_ADB.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function Android_ADB_testWrite{
3636

3737

3838
function Android_ADB_install {
39+
setMSG "Installing Android Tools..."
3940
$outFile = "adb.zip"
4041
$outDir = "$env:APPDATA\emudeck\android"
4142

android/setup.ps1

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
function setMSGTemp($message){
2-
$progressBarValue = Get-Content -Path "$env:APPDATA\EmuDeck\msg.log" -TotalCount 1 -ErrorAction SilentlyContinue
3-
$progressBarUpdate=[int]$progressBarValue+1
2+
$logFilePath = "$env:APPDATA\emudeck\logs\msg.log"
43

5-
#We prevent the UI to close if we have too much MSG, the classic eternal 99%
6-
if ( $progressBarUpdate -eq 95 ){
7-
$progressBarUpdate=90
4+
$line = Get-Content -Path $logFilePath -TotalCount 1 -ErrorAction SilentlyContinue
5+
6+
$progressBarValue = ($line -split '#')[0]
7+
8+
if ($progressBarValue -match '^\d+$') {
9+
$progressBarUpdate = [int]$progressBarValue + 5
10+
} else {
11+
$progressBarUpdate = 5
12+
}
13+
14+
if ($progressBarUpdate -ge 95) {
15+
$progressBarUpdate = 90
816
}
9-
"$progressBarUpdate" | Out-File -encoding ascii "$env:APPDATA\EmuDeck\msg.log"
10-
Write-Output $message
11-
Add-Content "$env:APPDATA\EmuDeck\msg.log" "# $message" -NoNewline -Encoding UTF8
17+
18+
"$progressBarUpdate# $Message" | Out-File -Encoding ASCII $logFilePath
19+
1220
Start-Sleep -Seconds 0.5
1321
}
1422
setMSGTemp 'Creating configuration files. please wait'

0 commit comments

Comments
 (0)