Skip to content

Commit

Permalink
v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaption committed Jan 23, 2024
1 parent 86079b2 commit c16646c
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
104 changes: 52 additions & 52 deletions LunarClientTools.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@rem LunarClientTools v1.3 by Vaption
@rem LunarClientTools v1.4 by Vaption
@rem https://github.com/Vaption/LunarClientTools
@rem Please report any issues on Github

@ECHO OFF
TITLE LunarClientTools v1.3
TITLE LunarClientTools v1.4

NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
Expand Down Expand Up @@ -53,10 +53,9 @@ echo 4. Navigate to .lunarclient
echo 5. Delete LunarClient's JRE
echo 6. Delete the Offline Folder
echo 7. Profile Management Options
echo 8. Backup and Save your Profiles
echo 9. Always Run LunarClient as Administrator
echo 10. Switch LunarClient's GPU to Dedicated/Integrated
echo 11. Exit
echo 8. Always Run LunarClient as Administrator
echo 9. Switch LunarClient's GPU to Dedicated/Integrated
echo 10. Exit
echo.
set /P M=Type 1-11 and then press enter:
if %M%==1 goto :fixes-menu
Expand All @@ -66,10 +65,9 @@ if %M%==4 goto :lc-folder
if %M%==5 goto :jre-rem
if %M%==6 goto :ofl-rem
if %M%==7 goto :json-menu
if %M%==8 goto :prf-backup
if %M%==9 goto :igpu-dgpu
if %M%==10 goto :lc-admin
if %M%==11 goto :kill
if %M%==8 goto :igpu-dgpu
if %M%==9 goto :lc-admin
if %M%==10 goto :kill

@ECHO ON

Expand Down Expand Up @@ -114,12 +112,14 @@ echo.
echo 1. List All Present Profiles in the Directory
echo 2. Autodetect Profiles and Replace Current Profile Manager
echo 3. Manual Profile Manager Generator
echo 4. Cancel
echo 4. Export Your Profiles to Desktop
echo 5. Cancel
set /P M=Type 1-4 and then press enter:
if %M%==1 goto :json-list
if %M%==2 goto :json-auto
if %M%==3 goto :json-manual
if %M%==4 goto :cls-menu
if %M%==4 goto :json-backup
if %M%==5 goto :cls-menu
echo.
echo.
echo.
Expand Down Expand Up @@ -243,6 +243,39 @@ pause
cls
goto :menu

:json-backup
echo.
echo.
echo.
choice /N /C YC /M "Are you sure you want to proceed? Press Y to Continue, Press C to Cancel"%1
IF ERRORLEVEL==2 goto :menu
IF ERRORLEVEL==1 goto :json-backup-action
:json-backup-action
mkdir "%userprofile%"\Desktop\"LCT-Profiles"
xcopy /s /v "%userprofile%"\.lunarclient\settings\game "%userprofile%"\Desktop\LCT-Profiles /Q > nul
del "%userprofile%"\Desktop\LCT-Profiles\accounts.json
del "%userprofile%"\Desktop\LCT-Profiles\alert_manager.json
del "%userprofile%"\Desktop\LCT-Profiles\features.json
del "%userprofile%"\Desktop\LCT-Profiles\global_options.json
del "%userprofile%"\Desktop\LCT-Profiles\internal.json
del "%userprofile%"\Desktop\LCT-Profiles\knownServers.json
del "%userprofile%"\Desktop\LCT-Profiles\language.json
del "%userprofile%"\Desktop\LCT-Profiles\main_menu_theme_manager.json
del "%userprofile%"\Desktop\LCT-Profiles\metadata_fallback.json
del "%userprofile%"\Desktop\LCT-Profiles\muted_users.json
del "%userprofile%"\Desktop\LCT-Profiles\rule-features.json
del "%userprofile%"\Desktop\LCT-Profiles\statistics.json
del "%userprofile%"\Desktop\LCT-Profiles\version
echo Successfully copied your profiles to your desktop.
echo File Path: "%userprofile%"\Desktop\LCT-Profiles
%SystemRoot%\explorer.exe "%userprofile%\Desktop\LCT-Profiles\"
echo.
echo.
echo.
pause
cls
goto :menu

:cache-rem
echo.
echo.
Expand All @@ -251,9 +284,9 @@ choice /N /C YC /M "Are you sure you want to proceed? Press Y to Continue, Press
IF ERRORLEVEL==2 goto :menu
IF ERRORLEVEL==1 goto :cache-rem-action
:cache-rem-action
del c:\Users\"%username%"\.lunarclient\game-cache\* /Q > nul
del c:\Users\"%username%"\.lunarclient\launcher-cache\* /Q > nul
del c:\Users\"%username%"\.lunarclient\offline\multiver\cache\* /Q > nul
del "%userprofile%"\.lunarclient\game-cache\* /Q > nul
del "%userprofile%"\.lunarclient\launcher-cache\* /Q > nul
del "%userprofile%"\.lunarclient\offline\multiver\cache\* /Q > nul
echo Successfully deleted LunarClient cached files.
echo.
echo.
Expand All @@ -270,7 +303,7 @@ choice /N /C YC /M "Are you sure you want to proceed? Press Y to Continue, Press
IF ERRORLEVEL==2 goto :menu
IF ERRORLEVEL==1 goto :logs-rem-action
:logs-rem-action
del c:\Users\"%username%"\.lunarclient\logs\* /Q > nul
del "%userprofile%"\.lunarclient\logs\* /Q > nul
echo Successfully cleared your game/launcher logs.
echo.
echo.
Expand Down Expand Up @@ -300,7 +333,7 @@ choice /N /C YC /M "Are you sure you want to proceed? Press Y to Continue, Press
IF ERRORLEVEL==2 goto :menu
IF ERRORLEVEL==1 goto :jre-rem-action
:jre-rem-action
del c:\Users\"%username%"\.lunarclient\jre\* /Q > nul
del "%userprofile%"\.lunarclient\jre\* /Q > nul
echo Successfully deleted LunarClient's JRE.
echo.
echo.
Expand All @@ -317,7 +350,7 @@ choice /N /C YC /M "Are you sure you want to proceed? Press Y to Continue, Press
IF ERRORLEVEL==2 goto :menu
IF ERRORLEVEL==1 goto :ofl-rem-action
:ofl-rem-action
del c:\Users\"%username%"\.lunarclient\offline\* /Q > nul
del "%userprofile%"\.lunarclient\offline\* /Q > nul
echo Successfully deleted LunarClient's offline folder.
echo.
echo.
Expand All @@ -343,39 +376,6 @@ pause
cls
goto :menu

:prf-backup
echo.
echo.
echo.
choice /N /C YC /M "Are you sure you want to proceed? Press Y to Continue, Press C to Cancel"%1
IF ERRORLEVEL==2 goto :menu
IF ERRORLEVEL==1 goto :prf-backup-action
:prf-backup-action
mkdir c:\Users\"%username%"\Desktop\"LCT-Profiles"
xcopy /s /v c:\Users\"%username%"\.lunarclient\settings\game c:\Users\"%username%"\Desktop\LCT-Profiles /Q > nul
del c:\Users\"%username%"\Desktop\LCT-Profiles\accounts.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\alert_manager.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\features.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\global_options.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\internal.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\knownServers.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\language.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\main_menu_theme_manager.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\metadata_fallback.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\muted_users.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\rule-features.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\statistics.json
del c:\Users\"%username%"\Desktop\LCT-Profiles\version
echo Successfully copied your profiles to your desktop.
echo File Path: c:\Users\"%username%"\Desktop\LCT-Profiles
%SystemRoot%\explorer.exe "c:\Users\"%username%"\Desktop\LCT-Profiles\"
echo.
echo.
echo.
pause
cls
goto :menu

:igpu-dgpu
echo.
echo.
Expand All @@ -390,7 +390,7 @@ IF ERRORLEVEL==2 goto :menu
IF ERRORLEVEL==1 goto :igpu-dgpu-action-integrated
:igpu-dgpu-action-integrated
@echo off
set "root_directory=C:\Users\%username%\.lunarclient\jre\"
set "root_directory=%userprofile%\.lunarclient\jre\"
set "javaw_path="

:findjavaw
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
- [x] Premade Fixes
- [x] Launcher Startup Failure (No Reaction on Click)
- [x] Profile Management Options
- [x] Export Your Profiles to Your Desktop
- [x] List All Present Profiles in the Directory
- [x] Auto-Detect and Generate profile_manager.json
- [x] Manually Generate profile_manager.json with Given Values
- [x] Clear Cache/Logs
- [x] Delete Offline/JRE
- [x] Navigate to .lunarclient
- [x] Save a Copy from your Profiles
- [x] Switch LunarClient's GPU to Dedicated/Integrated

## 📚 Usage
Expand Down

0 comments on commit c16646c

Please sign in to comment.