diff --git a/src/Terabyte Tweaker.bat b/src/Terabyte Tweaker.bat index 515daad..013808b 100644 --- a/src/Terabyte Tweaker.bat +++ b/src/Terabyte Tweaker.bat @@ -333,7 +333,6 @@ echo. echo. echo. echo. -timeout -t 300 >nul 2>&1 && shutdown -r -t 00 pause ::=========================================================================================================================================== :: @@ -499,7 +498,6 @@ echo. echo. echo. echo. -timeout -t 300 >nul 2>&1 && shutdown -r -t 00 pause ::=========================================================================================================================================== :: @@ -780,6 +778,7 @@ powershell -Command "(Get-Content options.txt) -replace 'renderDistance:\d+', 'r powershell -Command "(Get-Content options.txt) -replace 'particles:\d+', 'particles:2' | Out-File -encoding default options.txt" >nul 2>&1 powershell -Command "(Get-Content options.txt) -replace 'anaglyph3d:true', 'anaglyph3d:false' | Out-File -encoding default options.txt" >nul 2>&1 powershell -Command "(Get-Content options.txt) -replace 'maxFps:\d+', 'maxFps:9999' | Out-File -encoding default options.txt" >nul 2>&1 +powershell -Command "(Get-Content options.txt) -replace 'graphicsMode:\d+', 'graphicsMode:0' | Out-File -encoding default options.txt" >nul 2>&1 powershell -Command "(Get-Content options.txt) -replace 'anaglyph3d:true', 'anaglyph3d:false' | Out-File -encoding default options.txt" >nul 2>&1 powershell -Command "(Get-Content options.txt) -replace 'fboEnable:false', 'fboEnable:true' | Out-File -encoding default options.txt" >nul 2>&1 powershell -Command "(Get-Content options.txt) -replace 'fancyGraphics:true', 'fancyGraphics:false' | Out-File -encoding default options.txt" >nul 2>&1 @@ -995,6 +994,19 @@ IF [%%G] EQU [0416] ( ::=========================================================================================================================================== :: +:95 + +cls +FOR /F "tokens=3 delims= " %%G in ('reg query "hklm\system\controlset001\control\nls\language" /v Installlanguage') DO ( +IF [%%G] EQU [0416] ( + goto 20PT +) ELSE ( + goto 20EN +) +) + +::=========================================================================================================================================== :: + :100 powershell Invoke-WebRequest "https://raw.githubusercontent.com/Teramanbr/TerabyteTweaker/main/src/obrigadoporusar.bat" -OutFile "C:\Hone\Resources\obrigadoporusar.bat" diff --git a/src/desligar.ps1 b/src/desligar.ps1 index 9120672..fe9960e 100644 --- a/src/desligar.ps1 +++ b/src/desligar.ps1 @@ -3,4 +3,6 @@ $notify = new-object system.windows.forms.notifyicon $notify.icon = [System.Drawing.SystemIcons]::Information $notify.visible = $true -$notify.showballoontip(10,"Sucesso!","Terabyte Tweaker acabou de terminar de turbinar seu computador, que vai reiniciar em 5 minutos!",[system.windows.forms.tooltipicon]::None) \ No newline at end of file +$notify.showballoontip(10,"Sucesso!","Terabyte Tweaker acabou de terminar de turbinar seu computador, que vai reiniciar em 5 minutos!",[system.windows.forms.tooltipicon]::None) +Start-Sleep -s 500 +Restart-Computer \ No newline at end of file diff --git a/src/shutdown.ps1 b/src/shutdown.ps1 index 8c55edc..4c99cf7 100644 --- a/src/shutdown.ps1 +++ b/src/shutdown.ps1 @@ -3,4 +3,6 @@ $notify = new-object system.windows.forms.notifyicon $notify.icon = [System.Drawing.SystemIcons]::Information $notify.visible = $true -$notify.showballoontip(10,"Success!"," Terabyte Tweaker has finished tweaking your computer! It will now restart in 5 minutes!",[system.windows.forms.tooltipicon]::None) \ No newline at end of file +$notify.showballoontip(10,"Success!"," Terabyte Tweaker has finished tweaking your computer! It will now restart in 5 minutes!",[system.windows.forms.tooltipicon]::None) +Start-Sleep -s 500 +Restart-Computer \ No newline at end of file