Skip to content

Commit

Permalink
Version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KcrPL committed Feb 9, 2020
1 parent 5812436 commit 4bd5b90
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
35 changes: 27 additions & 8 deletions Install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo Starting up...
echo The program is starting...
:: ===========================================================================
:: .VFF File Downloader for Dolphin
set version=1.0.0
set version=1.0.1
:: AUTHORS: KcrPL
:: ***************************************************************************
:: Copyright (c) 2020 KcrPL, RiiConnect24 and it's (Lead) Developers
Expand All @@ -27,8 +27,8 @@ set /a incorrect_region=0
:: Window Title
title .VFF File Downloader for Dolphin v%version% Created by @KcrPL

set last_build=2020/02/08
set at=23:34
set last_build=2020/02/09
set at=04:50
:: ### Auto Update ###
:: 1=Enable 0=Disable
:: Update_Activate - If disabled, patcher will not even check for updates, default=1
Expand Down Expand Up @@ -109,7 +109,7 @@ echo Settings
echo.
echo R. Return to main menu.
echo.
echo 1. Delete config file (will delete from startup as well)
echo 1. Delete config file and delete VFF Downloader from startup.
echo 2. Delete VFF Downloader for Dolphin from startup
echo 3. If VFF Downloader is running, shut it down.
set /p s=Choose:
Expand Down Expand Up @@ -479,13 +479,32 @@ cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo %documents_folder%
echo Hmm... I couldn't find your Dolphin user configuration folder.
echo Try running Dolphin and "Perform Online System Update" and then start News/Forecast Channel.
echo.
echo Press any key to go back.
pause>NUL
goto 1
echo If it still won't work, choose "Set manually"
echo.
echo 1. Try again
echo 2. Set manually
echo 3. Exit
set /p s=Choose:
if %s%==1 goto 1_detect
if %s%==2 goto 1_detect_set
if %s%==3 goto 1
goto 1_detect_0
:1_detect_set
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo Could not find folder with Wii NAND used for Dolphin.
echo.
echo Default location: C:\Users\%username%\Documents\Dolphin Emulator\Wii\title\00010002
echo Make sure that the format of the location (folder structure) will remain the same, otherwise things will break.
echo.
set /p dolphin_location=Your location:
echo %dolphin_location%> "%config%\path_to_install.txt"
goto 1_detect_1
:1_detect_1
cls
echo %header%
Expand Down
12 changes: 11 additions & 1 deletion VFF-Downloader-for-Dolphin.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ setlocal enableDelayedExpansion
cd /d "%~dp0"
:: ===========================================================================
:: .VFF File Downloader for Dolphin - main script
set version=1.0.0
set version=1.0.1
:: AUTHORS: KcrPL
:: ***************************************************************************
:: Copyright (c) 2020 KcrPL, RiiConnect24 and it's (Lead) Developers
Expand Down Expand Up @@ -146,6 +146,7 @@ del /q "%dolphin_installation%\wc24dl_forecast.vff"

if %first_start%==1 echo x=MsgBox("First configuration is done. Please run Dolphin and check for yourself :)",64,"RiiConnect24 .VFF Downloader for Dolphin")>"%appdata%\warning.vbs"
if %first_start%==1 start "" "%appdata%\warning.vbs"
if %first_start%==1 set /a first_start=0

set last_hour_download=%time:~0,2%
set /a already_checked_this_hour=1
Expand All @@ -160,5 +161,14 @@ goto count_time
if not "%last_hour_download%"=="%time:~0,2%" set /a already_checked_this_hour=0
if %already_checked_this_hour%==0 if /i "%time:~3,2%" GEQ "10" goto download_files
timeout 600 /nobreak >NUL

echo --- Checking for update ---
::Check for update
if %alternative_curl%==0 call curl -s -S --insecure "%FilesHostedOn%/UPDATE/version_vff_downloader.txt" --output "%TempStorage%\version.txt"
if %alternative_curl%==1 call %alternative_curl_path% -s -S --insecure "%FilesHostedOn%/UPDATE/version_vff_downloader.txt" --output "%TempStorage%\version.txt"
if exist "%TempStorage%\version.txt" set /p updateversion=<"%TempStorage%\version.txt"
if not %updateversion%==%version% goto run_update
echo Done.

goto count_time

0 comments on commit 4bd5b90

Please sign in to comment.