installer now determines vipmud location from registry, falls back to documents as expected. Updated the repo urls

This commit is contained in:
Draqoken
2025-04-29 16:57:06 +03:00
parent 7ff9052f7e
commit 814b03955f

View File

@@ -9,11 +9,18 @@ echo [%DATE% %TIME%] Starting script... > "%LOG_FILE%"
set "CURRENT_DIR=%~dp0"
if "%CURRENT_DIR:~-1%"=="\" set "CURRENT_DIR=%CURRENT_DIR:~0,-1%"
set "TARGET_DIR=%USERPROFILE%\Documents\VIP Mud\Cosmic Rage"
:: Try to read the Filespec value
for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\VB and VBA Program Settings\VIPMUD\DefaultFolder" /v Filespec 2^>nul') do set "TARGET_DIR=%%j"
:: Fallback if not found
if not defined TARGET_DIR set "TARGET_DIR=%USERPROFILE%\Documents\VIP Mud\Cosmic Rage"
echo Target directory: %TARGET_DIR%
set "SET_FILE=%TARGET_DIR%\cosmic rage.set"
set "LOADER_FILE=%TARGET_DIR%\loader.set"
set "SOUNDS_DIR=%CURRENT_DIR%\sounds"
set "REPO_URL=http://nathantech.net:3000/CosmicRage/CosmicRageSounds"
set "REPO_URL=https://gitea.nathantech.net//CosmicRage/CosmicRageSounds"
set "REPO_SUBFOLDER=wav"
set "GIT_PORTABLE=%CURRENT_DIR%\gitportable\bin\git.exe"