Skip to content

Commit

Permalink
Melhoria no Shutdown + Fix no 95% + Melhoria Mínima nos Tweaks de Min…
Browse files Browse the repository at this point in the history
…ecraft
  • Loading branch information
Teramanbr committed Apr 17, 2022
1 parent 43298bf commit 11ea919
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 14 additions & 2 deletions src/Terabyte Tweaker.bat
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ echo.
echo.
echo.
echo.
timeout -t 300 >nul 2>&1 && shutdown -r -t 00
pause

::=========================================================================================================================================== ::
Expand Down Expand Up @@ -499,7 +498,6 @@ echo.
echo.
echo.
echo.
timeout -t 300 >nul 2>&1 && shutdown -r -t 00
pause

::=========================================================================================================================================== ::
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion src/desligar.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
$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
4 changes: 3 additions & 1 deletion src/shutdown.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
$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

0 comments on commit 11ea919

Please sign in to comment.