├── VFF-Downloader-for-Dolphin.exe ├── README.md ├── VFF-Downloader-for-Dolphin.sh ├── VFF-Downloader-for-Dolphin.bat ├── LICENSE └── Install.bat /VFF-Downloader-for-Dolphin.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RiiConnect24/.VFF-File-Downloader-for-Dolphin/HEAD/VFF-Downloader-for-Dolphin.exe -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## .VFF-File-Downloader-for-Dolphin 2 | [![License](https://img.shields.io/github/license/riiconnect24/.VFF-File-Downloader-for-Dolphin.svg?style=flat-square)](http://www.gnu.org/licenses/agpl-3.0) 3 | ![Production List](https://img.shields.io/discord/206934458954153984.svg?style=flat-square) 4 | ![Version Badge](https://img.shields.io/github/release/riiconnect24/.VFF-File-Downloader-for-Dolphin.svg?style=flat-square) 5 | 6 | .VFF File Downloader for Dolphin is a program that replaces Dolphin's missing WiiConnect24 modules. This program will download files that are needed for Forecast and News Channel to work. 7 | 8 | ### Features 9 | * Auto updating - Always stay updated! 10 | * You can choose your own region as well as language. 11 | * The downloader can be installed into Windows Startup folder. 12 | - The program is lightweight. Even if you have an HDD, it won't slow your PC. 13 | - The program will run in background 14 | - It uses 0% of your CPU and about 4-6MB of RAM. 15 | - The source code is on GitHub. 16 | 17 | ... or you can choose to manually run the program every time you want to download the files. 18 | 19 | >This program may contain bugs. If you spot any or are just having problems with this program in general, report them on our [Issues Page](https://github.com/RiiConnect24/.VFF-File-Downloader-for-Dolphin/issues), e-mail us at [support@riiconnect24.net](mailto:support@riiconnect24.net), or ask us for help on our [Discord server](https://discord.gg/b4Y7jfD)! 20 | 21 | ![Main Menu](https://KcrPL.github.io/images/ForecastChannelListSelect.png) 22 | 23 | -------------------------------------------------------------------------------- /VFF-Downloader-for-Dolphin.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | version=1.1 4 | 5 | printf '\033[8;30;150t' 6 | 7 | time_fore=$(($RANDOM % 28)) 8 | time_news=$((30 + $RANDOM % 29)) 9 | time_evc=$(($RANDOM % 58)) 10 | 11 | numbers=(001 010 016 018 020 021 022 025 030 036 040 042 049 052 065 066 067 074 076 077 078 079 082 083 088 094 095 096 097 098 105 107 108 110) 12 | 13 | last_build=2020/01/20 14 | at=9:00 15 | 16 | header() { 17 | clear 18 | printf "\033[1m.VFF Downloader for Dolphin - Created by Noah Pistilli (c) Copyright 2021 Noah Pistilli\033[0m\nUpdated on $last_build at $at\n" | fold -s -w "$(tput cols)" 19 | printf -- "=%.0s" $(seq "$(tput cols)") && printf "\n\n" 20 | } 21 | 22 | choose() { 23 | read -p "Choose: " s 24 | } 25 | 26 | case "$OSTYPE" in 27 | darwin*) path='~/Library/Application\ Support/Dolphin/Wii'; check_dependencies ;; 28 | linux*) path=~/.local/share/dolphin-emu/Wii; check_dependencies ;; 29 | esac 30 | 31 | 32 | check_dependency() { 33 | if [ -z "$2" ]; then 34 | # Expect that the package name is the same as the command being searched for. 35 | package_name=$1 36 | else 37 | # The package name was specified to be different. 38 | package_name=$2 39 | fi 40 | 41 | if ! command -v $1 &> /dev/null; then echo >&2 "Cannot find the command $1. Please install a $package_name package with your package manager. Name of package may vary from distro to distro" 42 | exit 1 43 | fi 44 | } 45 | 46 | check_dependencies() { 47 | check_dependency crontab cron 48 | check_dependency curl 49 | } 50 | 51 | 52 | main() { 53 | clear 54 | header 55 | printf ".VFF Downloader for Dolphin\n\n1. Start\n2. Quit\n$del\n\nDo you have problems or want to contact us?\nMail us at support@riiconnect24.net or join our Discord Server.\n\n" | fold -s -w "$(tput cols)" 56 | read -p "Choose: " p 57 | } 58 | 59 | if [ -e ~/.vff/vff_fore.txt ] || [ -e ~/.vff/vff_evc.txt ] 60 | then 61 | del="3. Delete VFF Downloader files" 62 | main 63 | else 64 | main 65 | fi 66 | 67 | reg_select() { 68 | clear 69 | header 70 | printf "Choose the region of your emulated Wii Menu\n\n1. USA\n2. Europe\n3. Japan\n\n" 71 | choose 72 | 73 | case $s in 74 | 1) reg=45; number_1 ;; 75 | 2) reg=50; number_1 ;; 76 | 3) reg=4a; number_1 ;; 77 | esac 78 | } 79 | 80 | 81 | 82 | number_1() { 83 | clear 84 | header 85 | printf "Welcome to the installation process of RiiConnect24 VFF Downloader for Dolphin!\n\nThis program will allow you to use Forecast/News Channel and the Everybody Votes Channel on your Dolphin Emulator\n\033[1mNOTE: In order to use the Everybody Votes Channel, you need a SYSCONF file from a real Wii.\n\n\033[0mFirst, we need to detect your Dolphin user files.\n\n1. Continue\n2. Exit\n\n" | fold -s -w "$(tput cols)" 86 | choose 87 | 88 | case $s in 89 | 1) dol_find 90 | dol_find2 91 | break 92 | ;; 93 | 94 | 2) exit ;; 95 | esac 96 | } 97 | 98 | dol_find() { 99 | if [[ ! -d $path ]] 100 | then 101 | clear 102 | unset path 103 | case $OSTYPE in 104 | darwin*) path=$(grep NANDRootPath ~/Library/Application\ Support/Dolphin/config/dolphin.ini | cut -d ' ' -f 3-10) ;; 105 | linux*) if [[ -e .config/dolphin-emu/Dolphin.ini ]] 106 | then 107 | path=$(grep NANDRootPath .config/dolphin-emu/Dolphin.ini | cut -d ' ' -f 3-10) 108 | else 109 | chg_path 110 | fi ;; 111 | esac 112 | else 113 | path=$(sed 's/ /\\ /g' <<< "$path") 114 | sel_download 115 | fi 116 | } 117 | 118 | dol_find2() { 119 | if [[ ! -d $path ]] 120 | then 121 | chg_path 122 | else 123 | path=$(sed 's/ /\\ /g' <<< "$path") 124 | sel_download 125 | fi 126 | } 127 | 128 | function chg_path { 129 | clear 130 | header 131 | printf "[*] Change Path\n\nGo into Dolphin, press Config, go to Paths, then copy and paste the path that is in Wii NAND Root here.\n(e.g. ~/Library/Application\ Support/Dolphin/Wii)\n\n" 132 | read -p "" path 133 | 134 | dol_find2 135 | } 136 | 137 | 138 | sel_download() { 139 | clear 140 | header 141 | printf "What are we doing today?\n\n1. Forecast/News/Everybody Votes Channel\n\n2. Forecast/News Channels\n\n3. Everybody Votes Channel\n\n" 142 | read -p "Choose: " z 143 | 144 | case $z in 145 | 1) dupli_prevent_evc 146 | evc_find 147 | evc_region_select 148 | dupli_prevent_fore 149 | fore_region 150 | news 151 | finish 152 | break 153 | ;; 154 | 2) dupli_prevent_fore 155 | fore_region 156 | news 157 | finish 158 | break 159 | ;; 160 | 3) dupli_prevent_evc 161 | evc_find 162 | evc_region_select 163 | finish 164 | break 165 | ;; 166 | esac 167 | } 168 | 169 | dupli_prevent_evc() { 170 | clear 171 | if [ -e ~/.vff/vff_evc.txt ] 172 | then 173 | header 174 | printf "You have already used this script. To prevent duplicate crontabs from being created, we are exiting the script for you.\n\n" 175 | exit 176 | fi 177 | } 178 | 179 | evc_find() { 180 | clear 181 | if [ ! -d $path/title/00010001/48414a$reg ] 182 | then 183 | header 184 | printf "I could not find the Everybody Votes Channel on your computer. We will be bringing you back to the selection screen. Please download EVC and try again.\n"; sleep 4; sel_download | fold -s -w "$(tput cols)" 185 | exit 186 | fi 187 | } 188 | 189 | evc_region_select() { 190 | clear 191 | header 192 | printf " \033[1m--- Everybody Votes Channel Configuration ---\033[0m\n\n\ 193 | Now, you need to choose the region of the Emulated Wii Console to use with the Everybody Votes Channel\n\n\ 194 | 001: Japan 074: Denmark\n\ 195 | 010: Argentina 076: Finland\n\ 196 | 016: Brazil 077: France\n\ 197 | 018: Canada 078: Germany\n\ 198 | 020: Chile 079: Greece\n\ 199 | 021: Colombia 082: Ireland\n\ 200 | 022: Costa Rica 083: Italy\n\ 201 | 025: Ecuador 088: Luxembourg\n\ 202 | 030: Guatemala 094: Netherlands\n\ 203 | 036: Mexico 095: New Zeland\n\ 204 | 040: Panama 096: Norway\n\ 205 | 042: Paraguay 097: Poland\n\ 206 | 049: United States 098: Portugal\n\ 207 | 052: Venezuela 105: Spain\n\ 208 | 065: Australia 107: Sweden\n\ 209 | 066: Austria 108: Switzerland\n\ 210 | 067: Belgium 110: United Kingdom\n\n" | fold -s -w "$(tput cols)" 211 | choose 212 | 213 | if [ ! -d ~/.vff ]; then mkdir ~/.vff; fi 214 | 215 | for i in ${numbers[@]}; do 216 | if [[ ${s#0} -eq ${i#0} ]]; then 217 | (crontab -l; echo "$time_evc */6 * * * curl -s -S --insecure https://vt.wii.rc24.xyz/$i/wc24dl.vff --output "$path"/title/00010001/48414a$reg/data/"wc24dl.vff"") | sort - | uniq - | crontab - 218 | echo 'prevents duplicate cron jobs in the vff downloader' > ~/.vff/vff_evc.txt 219 | fi 220 | done 221 | } 222 | 223 | dupli_prevent_fore() { 224 | clear 225 | if [ -e ~/.vff/vff_fore.txt ] 226 | then 227 | header 228 | printf "You have already used this script. To prevent duplicate crontabs from being created, we are exiting the script for you.\n\n" 229 | exit 230 | fi 231 | } 232 | 233 | fore_region() { 234 | clear 235 | header 236 | unset s 237 | printf " \033[1m--- Forecast Channel Configuration ---\033[0m\n\n\ 238 | Now, you need to choose the region of the Emulated Wii Console to use with Forecast Channel from the list below.\n\n\ 239 | 001: Japan 019: Cayman Islands\n\ 240 | 008: Anguilla 020: Chile\n\ 241 | 009: Antigua and Barbuda 021: Colombia\n\ 242 | 010: Argentina 022: Costa Rica\n\ 243 | 011: Aruba 023: Dominica\n\ 244 | 012: Bahamas 024: Dominican Republic\n\ 245 | 013: Barbados 025: Ecuador\n\ 246 | 014: Belize 026: El Salvador\n\ 247 | 015: Bolivia 027: French Guiana\n\ 248 | 016: Brazil 028: Grenada\n\ 249 | 017: British Virgin Islands 029: Guadeloupe\n\ 250 | 018: Canada 030: Guatemala\n\n\ 251 | 1: More Countries\n\n" | fold -s -w $(tput cols) 252 | choose 253 | 254 | case $s in 255 | 001) reg_name="Japan"; forecast_jpn ;; 256 | 008) reg_name="Anguilla"; forecast_ntsc ;; 257 | 009) reg_name="Antigua"; forecast_ntsc ;; 258 | 010) reg_name="Argentina"; forecast_ntsc ;; 259 | 011) reg_name="Aruba"; forecast_ntsc ;; 260 | 012) reg_name="Bahamas"; forecast_ntsc ;; 261 | 013) reg_name="Barbados"; forecast_ntsc ;; 262 | 014) reg_name="Belize"; forecast_ntsc ;; 263 | 015) reg_name="Bolivia"; forecast_ntsc ;; 264 | 016) reg_name="Brazil"; forecast_ntsc ;; 265 | 017) reg_name="British Virgin Islands"; forecast_ntsc ;; 266 | 018) reg_name="Canada"; forecast_ntsc ;; 267 | 019) reg_name="Cayman Islands"; forecast_ntsc ;; 268 | 020) reg_name="Chile"; forecast_ntsc ;; 269 | 021) reg_name="Colombia"; forecast_ntsc ;; 270 | 022) reg_name="Costa Rica"; forecast_ntsc ;; 271 | 023) reg_name="Dominica"; forecast_ntsc ;; 272 | 024) reg_name="Dominican Republic"; forecast_ntsc ;; 273 | 025) reg_name="Ecuador"; forecast_ntsc ;; 274 | 026) reg_name="El Salvador"; forecast_ntsc ;; 275 | 027) reg_name="Guiana"; forecast_ntsc ;; 276 | 028) reg_name="Grenada"; forecast_ntsc ;; 277 | 029) reg_name="Guadeloupe"; forecast_ntsc ;; 278 | 030) reg_name="Guatemala"; forecast_ntsc ;; 279 | 1) fore_region2 ;; 280 | * ) printf "Invalid selection.\n"; sleep 2; fore_region ;; 281 | esac 282 | } 283 | 284 | fore_region2() { 285 | clear 286 | header 287 | printf " \033[1m--- Forecast Channel Configuration ---\033[0m\n\n\ 288 | Now, you need to choose your region to use with Forecast Channel from the list below.\n\n\ 289 | 031: Guyana 043: St. Kitts and Nevis\n\ 290 | 032: Haiti 044: St. Lucia\n\ 291 | 033: Honduras 045: St. Vincent and the Grenadines\n\ 292 | 034: Jamacia 046: Suriname\n\ 293 | 035: Martinique 047: Trinidad and Tobago\n\ 294 | 036: Mexico 048: Turks and Caicos Islands\n\ 295 | 037: Monsterrat 049: United States\n\ 296 | 038: Netherlands Antilles 050: Uraguay\n\ 297 | 039: Nicaragua 051: US Virgin Islands\n\ 298 | 040: Panama 052: Venezuela\n\ 299 | 041: Paraguay 065: Austraila\n\ 300 | 042: Peru 066: Austria\n\n\ 301 | 1: More Countries\n\n\ 302 | 2: Back\n\n" | fold -s -w "$(tput cols)" 303 | choose 304 | 305 | case $s in 306 | 031) reg_name="Guyana"; forecast_ntsc ;; 307 | 032) reg_name="Haiti"; forecast_ntsc ;; 308 | 033) reg_name="Honduras"; forecast_ntsc ;; 309 | 034) reg_name="Jamaica"; forecast_ntsc ;; 310 | 035) reg_name="Martinique"; forecast_ntsc ;; 311 | 036) reg_name="Mexico"; forecast_ntsc ;; 312 | 037) reg_name="Monsterrat"; forecast_ntsc ;; 313 | 038) reg_name="Netherland Antilles"; forecast_ntsc ;; 314 | 039) reg_name="Nicaragua"; forecast_ntsc ;; 315 | 040) reg_name="Panama"; forecast_ntsc ;; 316 | 041) reg_name="Paraguay"; forecast_ntsc ;; 317 | 042) reg_name="Peru"; forecast_ntsc ;; 318 | 043) reg_name="St. Kitts and Nevis"; forecast_ntsc ;; 319 | 044) reg_name="St. Lucia"; forecast_ntsc ;; 320 | 045) reg_name="St. Vincent and the Grenadines"; forecast_ntsc ;; 321 | 046) reg_name="Suriname"; forecast_ntsc ;; 322 | 047) reg_name="Trinidad and Tobago"; forecast_ntsc ;; 323 | 048) reg_name="Turks and Caicos Islands"; forecast_ntsc ;; 324 | 049) reg_name="United States"; forecast_ntsc ;; 325 | 050) reg_name="Uruguay"; forecast_ntsc ;; 326 | 051) reg_name="US Virgin Islands"; forecast_ntsc ;; 327 | 052) reg_name="Venezuela"; forecast_ntsc ;; 328 | 065) reg_name="Australia"; forecast_eur ;; 329 | 066) reg_name="Austria"; forecast_eur ;; 330 | 1) fore_region3 ;; 331 | 2) fore_region ;; 332 | *) printf "Invalid selection.\n"; sleep 2; fore_region2 ;; 333 | esac 334 | } 335 | 336 | fore_region3() { 337 | clear 338 | header 339 | printf " \033[1m--- Forecast Channel Configuration ---\033[0m\n\n\ 340 | Now, you need to choose your region to use with Forecast Channel from the list below.\n\n\ 341 | 067: Belgium 097: Poland\n\ 342 | 074: Denmark 098: Portugal\n\ 343 | 076: Finland 099: Romania\n\ 344 | 078: France 105: Spain\n\ 345 | 078: Germany 107: Sweden\n\ 346 | 079: Greece 108: Switzerland\n\ 347 | 082: Ireland 110: United Kingdom\n\ 348 | 083: Italy\n\ 349 | 088: Luxembourg\n\ 350 | 094: Netherland\n\ 351 | 095: New Zealand\n\ 352 | 096: Norway\n\n\ 353 | 1: Back\n\n" | fold -s -w "$(tput cols)" 354 | choose 355 | 356 | case $s in 357 | 067) reg_name="Belgium"; forecast_eur ;; 358 | 074) reg_name="Denmark"; forecast_eur ;; 359 | 076) reg_name="Finland"; forecast_eur ;; 360 | 077) reg_name="France"; forecast_eur ;; 361 | 078) reg_name="Germany"; forecast_eur ;; 362 | 079) reg_name="Greece"; forecast_eur ;; 363 | 082) reg_name="Ireland"; forecast_eur ;; 364 | 083) reg_name="Italy"; forecast_eur ;; 365 | 088) reg_name="Luxembourg"; forecast_eur ;; 366 | 094) reg_name="Netherlands"; forecast_eur ;; 367 | 095) reg_name="New Zealand"; forecast_eur ;; 368 | 096) reg_name="Norway"; forecast_eur ;; 369 | 097) reg_name="Poland"; forecast_eur ;; 370 | 098) reg_name="Portugal"; forecast_eur ;; 371 | 099) reg_name="Romania"; forecast_eur ;; 372 | 105) reg_name="Spain"; forecast_eur ;; 373 | 107) reg_name="Sweden"; forecast_eur ;; 374 | 108) reg_name="Switzerland"; forecast_eur ;; 375 | 110) reg_name="United Kingdom"; forecast_eur ;; 376 | 1) fore_region2 ;; 377 | *) printf "Invalid selection.\n"; sleep 2; fore_region3 ;; 378 | esac 379 | } 380 | 381 | forecast_jpn() { 382 | clear 383 | header 384 | printf " \033[1m--- Forecast Channel Configuration ---\033[0m\n\n\ 385 | The region that you have chosen is: $reg_name\n\n\ 386 | 0. Japanese\n\ 387 | 1 <- Back\n\n" | fold -s -w "$(tput cols)" 388 | choose 389 | 390 | if [ ! -d ~/.vff ]; then mkdir ~/.vff; fi 391 | case $s in 392 | 1) (crontab -l; echo "$time_fore * * * * curl -s -S --insecure http://weather.wii.rc24.xyz/0/001/wc24dl.vff --output $path/title/00010002/4841465a/data/"wc24dl.vff"") | sort - | uniq - | crontab -; echo 'prevents duplicate cron jobs in the vff downloader' > ~/.vff/vff_fore.txt ;; 393 | 2) fore_region ;; 394 | *) printf "Invalid selection.\n"; sleep 2; forecast_jpn ;; 395 | esac 396 | } 397 | 398 | forecast_ntsc() { 399 | clear 400 | header 401 | printf " \033[1m--- Forecast Channel Configuration ---\033[0m\n\n\ 402 | The region that you have chosen is: $reg_name\n\n\ 403 | 1. English\n\ 404 | 3. French\n\ 405 | 4. Spanish\n\ 406 | 0 <- Back\n\n" | fold -s -w "$(tput cols)" 407 | read -p "Choose your prefered Language: " l 408 | 409 | if [ ! -d ~/.vff ]; then mkdir ~/.vff; fi 410 | case $l in 411 | 1|3|4) (crontab -l; echo "$time_fore * * * * curl -s -S --insecure http://weather.wii.rc24.xyz/$l/$s/wc24dl.vff --output "$path"/title/00010002/48414645/data/"wc24dl.vff"") | sort - | uniq - | crontab -; echo 'prevents duplicate cron jobs in the vff downloader' > ~/.vff/vff_fore.txt ;; 412 | 0) fore_region ;; 413 | *) printf "Invalid selection.\n"; sleep 2; forecast_ntsc ;; 414 | esac 415 | 416 | } 417 | 418 | forecast_eur() { 419 | clear 420 | header 421 | printf " \033[1m--- Forecast Channel Configuration ---\033[0m\n\n\ 422 | The region that you have chosen is: $reg_name\n\n\ 423 | 1. English\n\ 424 | 2. German\n\ 425 | 3. French\n\ 426 | 4. Spanish\n\ 427 | 5. Italian\n\ 428 | 6. Dutch\n\ 429 | 0 <- Back\n\n" | fold -s -w "$(tput cols)" 430 | read -p "Choose your prefered Language: " l 431 | 432 | if [ ! -d ~/.vff ]; then mkdir ~/.vff; fi 433 | case $l in 434 | 1|2|3|4|5|6) (crontab -l; echo "$time_fore * * * * curl -s -S --insecure http://weather.wii.rc24.xyz/$l/$s/wc24dl.vff --output $path/title/00010002/48414650/data/"wc24dl.vff"") | sort - | uniq - | crontab -; echo 'prevents duplicate cron jobs in the vff downloader' > ~/.vff/vff_fore.txt ;; 435 | 0) fore_region ;; 436 | *) printf "Invalid selection.\n"; sleep 2; forecast_eur ;; 437 | esac 438 | } 439 | 440 | news() { 441 | clear 442 | header 443 | printf " \033[1m--- News Channel Configuration ---\033[0m\n\n\ 444 | 0. Japanese\n\ 445 | 1. English Europe\n\ 446 | 2. German\n\ 447 | 3. English USA\n\ 448 | 4. French\n\ 449 | 5. Italian\n\ 450 | 6. Dutch\n\ 451 | 7. Spanish\n\n" | fold -s -w "$(tput cols)" 452 | read -p "This time, it's easier. Just choose the region/language for News Channel: " s 453 | 454 | case $s in 455 | 0) (crontab -l; echo "$time_news * * * * curl -s -S --insecure http://news.wii.rc24.xyz/v2/0_Japan/wc24dl.vff --output $path/title/00010002/4841474a/data/"wc24dl.vff"") | sort - | uniq - | crontab - ;; 456 | 1|2|5|6) (crontab -l; echo "$time_news * * * * curl -s -S --insecure http://news.wii.rc24.xyz/v2/"$s"_Europe/wc24dl.vff --output $path/title/00010002/48414750/data/"wc24dl.vff"") | sort - | uniq - | crontab - ;; 457 | 3) (crontab -l; echo "$time_news * * * * curl -s -S --insecure http://news.wii.rc24.xyz/v2/1_America/wc24dl.vff --output $path/title/00010002/48414745/data/"wc24dl.vff"") | sort - | uniq - | crontab - ;; 458 | 4) (crontab -l; echo "$time_news * * * * curl -s -S --insecure http://news.wii.rc24.xyz/v2/3_International/wc24dl.vff --output $path/title/00010002/484147$reg/data/"wc24dl.vff"") | sort - | uniq - | crontab - ;; 459 | 7) (crontab -l; echo "$time_news * * * * curl -s -S --insecure http://news.wii.rc24.xyz/v2/4_International/wc24dl.vff --output $path/title/00010002/484147$reg/data/"wc24dl.vff"") | sort - | uniq - | crontab - ;; 460 | *) printf "Invalid selection.\n"; sleep 2; news ;; 461 | esac 462 | } 463 | 464 | finish() { 465 | clear 466 | header 467 | printf "Thank you for using the .VFF Downloader. The News and Forecast Channels will be ready within an hour, and the Everybody Votes Channel within the next 6 hours.\n\n" 468 | exit 469 | } 470 | 471 | del_vff() { 472 | clear 473 | header 474 | printf "After completing this, your computer will no longer download the .vff files necessary for the WiiConnect24 channels to work. Select the options below to proceed.\n\n\ 475 | 1. Delete Forecast and News Channel Files\n\n\ 476 | 2. Delete Everybody Vote Channel Files.\n\n\ 477 | 3. Delete Everything\n\n\ 478 | 4. Exit\n\n" | fold -s -w "$(tput cols)" 479 | choose 480 | 481 | case "$s" in 482 | 1) crontab -l | grep -v 'curl -s -S --insecure http://weather.wii.rc24.xyz' | crontab -; crontab -l | grep -v 'curl -s -S --insecure http://news.wii.rc24.xyz/v2' | crontab -; rm -rf ~/.vff/vff_fore.txt; del_files_fin ;; 483 | 2) crontab -l | grep -v 'curl -s -S --insecure https://vt.wii.rc24.xyz' | crontab -; rm -rf ~/.vff/vff_evc.txt; del_files_fin ;; 484 | 3) crontab -l | grep -v 'curl -s -S --insecure http://weather.wii.rc24.xyz' | crontab -; crontab -l | grep -v 'curl -s -S --insecure http://news.wii.rc24.xyz/v2' | crontab -; crontab -l | grep -v 'curl -s -S --insecure https://vt.wii.rc24.xyz/018/wc24dl.vff' | crontab -; rm -rf ~/.vff/vff_fore.txt; rm -rf ~/.vff/vff_evc.txt; del_files_fin ;; 485 | 4) exit ;; 486 | *) printf "Invalid selection.\n"; sleep 2; del_vff ;; 487 | esac 488 | } 489 | 490 | del_files_fin() { 491 | clear 492 | header 493 | printf "The crontab was successfully deleted from your computer. Your computer will no longer download files for the channel you selected.\n\n" 494 | exit 495 | } 496 | 497 | case "$p" in 498 | 1) reg_select ;; 499 | 2) exit ;; 500 | 3) del_vff ;; 501 | esac 502 | -------------------------------------------------------------------------------- /VFF-Downloader-for-Dolphin.bat: -------------------------------------------------------------------------------- 1 | ::[Bat To Exe Converter] 2 | :: 3 | ::YAwzoRdxOk+EWAnk 4 | ::fBw5plQjdG8= 5 | ::YAwzuBVtJxjWCl3EqQJgSA== 6 | ::ZR4luwNxJguZRRnk 7 | ::Yhs/ulQjdF+5 8 | ::cxAkpRVqdFKZSTk= 9 | ::cBs/ulQjdF+5 10 | ::ZR41oxFsdFKZSDk= 11 | ::eBoioBt6dFKZSDk= 12 | ::cRo6pxp7LAbNWATEpCI= 13 | ::egkzugNsPRvcWATEpSI= 14 | ::dAsiuh18IRvcCxnZtBJQ 15 | ::cRYluBh/LU+EWAnk 16 | ::YxY4rhs+aU+JeA== 17 | ::cxY6rQJ7JhzQF1fEqQJQ 18 | ::ZQ05rAF9IBncCkqN+0xwdVs0 19 | ::ZQ05rAF9IAHYFVzEqQJQ 20 | ::eg0/rx1wNQPfEVWB+kM9LVsJDGQ= 21 | ::fBEirQZwNQPfEVWB+kM9LVsJDGQ= 22 | ::cRolqwZ3JBvQF1fEqQJQ 23 | ::dhA7uBVwLU+EWDk= 24 | ::YQ03rBFzNR3SWATElA== 25 | ::dhAmsQZ3MwfNWATElA== 26 | ::ZQ0/vhVqMQ3MEVWAtB9wSA== 27 | ::Zg8zqx1/OA3MEVWAtB9wSA== 28 | ::dhA7pRFwIByZRRnk 29 | ::Zh4grVQjdCSDJH6N4GolKicaeiKkcU2zCrBRzOfs4eaIo0kYRq85d52W/ruCMOga5HnSU7Bg8nVNlscDDR9dbF+tYR15jWFOpmyMOYmZqwqB 30 | ::YB416Ek+ZG8= 31 | :: 32 | :: 33 | ::978f952a14a936cc963da21a135fa983 34 | @echo off 35 | setlocal enableextensions 36 | setlocal enableDelayedExpansion 37 | cd /d "%~dp0" 38 | :: =========================================================================== 39 | :: .VFF File Downloader for Dolphin - main script 40 | set version=1.1.1 41 | :: AUTHORS: KcrPL 42 | :: *************************************************************************** 43 | :: Copyright (c) 2020-2022 KcrPL, RiiConnect24 and it's (Lead) Developers 44 | :: =========================================================================== 45 | set last_build=2022/02/20 46 | set at=00:47 47 | :: Unattended mode 48 | :: This script is meant to be running in the background. 49 | if exist update_assistant.bat del /q update_assistant.bat 50 | if exist VFF-Downloader-for-DolphinTEMP.exe ( 51 | taskkill /im VFF-Downloader-for-DolphinTEMP.exe /f 52 | del /q VFF-Downloader-for-DolphinTEMP.exe 53 | ) 54 | 55 | :: Whoops 56 | if exist "C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Install.bat" del /q "C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Install.bat" 57 | 58 | echo Running VFF File Downloader for Dolphin... 59 | 60 | if exist update_assistant.bat del /q update_assistant.bat 61 | set /a alternative_curl=0 62 | set /a first_start=0 63 | set /a run_once=0 64 | set /a retry=3 65 | 66 | set header=.VFF File Downloader for Dolphin - (C) KcrPL v%version% (Compiled on %last_build% at %at%) 67 | 68 | 69 | :: Arguments 70 | if "%1"=="-first_start" set /a first_start=1 71 | if "%1"=="-run_once" set /a run_once=1 72 | :: Check for updates -> Download and put the file -> Countdown -> Repeat step 2 73 | :: 74 | set /a Update_Activate=1 75 | set /a offlinestorage=0 76 | set FilesHostedOn=https://patcher.rc24.xyz/update/VFF-Downloader-for-Dolphin/v1 77 | 78 | set MainFolder=%appdata%\VFF-Downloader-for-Dolphin 79 | set TempStorage=%appdata%\VFF-Downloader-for-Dolphin\internet\temp 80 | set config=%appdata%\VFF-Downloader-for-Dolphin\config 81 | set alternative_curl_path=%MainFolder%\curl.exe 82 | 83 | cls 84 | echo %header% 85 | echo --------------------------------------------------------------------------------------- 86 | echo. 87 | 88 | goto startup_wait 89 | 90 | :startup_wait 91 | if %run_once%==1 goto check_for_update 92 | echo --- [%date%] [%time:~0,8%] The program is probably sitting in the background as startup. 93 | echo Waiting 30 seconds to free CPU resources and continuing. 94 | echo If you can see this, pressing any key will skip the 30 seconds wait time. 95 | call "%windir%\system32\timeout.exe" 30 >NUL 96 | 97 | goto check_for_internet 98 | 99 | :no_internet_wait 100 | echo --- [%date%] [%time:~0,8%] Error while checking for internet connection - waiting 3 minutes and trying again --- 101 | call "%windir%\system32\timeout.exe" 180>NUL 102 | 103 | goto check_for_internet 104 | :check_for_internet 105 | echo --- [%date%] [%time:~0,8%] Checking for Internet connection... --- 106 | curl -s http://www.msftncsi.com/ncsi.txt>NUL 107 | if not %errorlevel%==0 goto no_internet_wait 108 | echo . 109 | echo . 110 | echo .: OK^^! 111 | call :check_rc24_connection 112 | if %errorlevel%==1 goto server_dead 113 | goto check_for_update 114 | :check_rc24_connection 115 | echo. 116 | echo --- [%date%] [%time:~0,8%] Checking connection to RiiConnect24... --- 117 | For /F "Delims=" %%A In ('call curl -f -L -s --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "https://patcher.rc24.xyz/connection_test.txt"') do set "connection_test=%%A" 118 | 119 | if not "%connection_test%"=="OK" exit /b 1 120 | 121 | set ip_to_ping=patcher.rc24.xyz 122 | for /F "tokens=1-9 delims==< " %%a in ('PING -n 1 -w 2500 %ip_to_ping%') do if "%%h"=="TTL" set network_latency=%%g 123 | echo . 124 | echo . 125 | echo .: OK^^! (%network_latency%) 126 | 127 | exit /b 0 128 | 129 | :server_dead 130 | echo . 131 | echo . 132 | echo .: Error^^! RiiConnect24 is currently under maintenance or unavailable. 133 | echo Continuing to try, please be patient. 134 | echo Check https://status.rc24.xyz for details. 135 | echo. 136 | echo --- [%date%] [%time:~0,8%] Waiting 180 seconds (3 minutes) --- 137 | call "%windir%\system32\timeout.exe" 180 >NUL 138 | goto check_for_internet 139 | 140 | 141 | :error_no_work_folder 142 | echo x=MsgBox("There was an error while reading configuration files. Please run Install.bat and reconfigure the program. The program will now exit.",16,"RiiConnect24 .VFF Downloader for Dolphin")>"%appdata%\warning.vbs" 143 | start "" "%appdata%\warning.vbs" 144 | del "%config%\warning.vbs" 145 | exit 146 | :check_for_update 147 | echo. 148 | curl -s "" 149 | if not %errorlevel%==3 set /a alternative_curl=1 150 | 151 | 152 | echo --- [%date%] [%time:~0,8%] First update check --- 153 | 154 | :: Update script. 155 | set updateversion=0.0.0 156 | :: Delete version.txt and whatsnew.txt 157 | if %offlinestorage%==0 if exist "%TempStorage%\version.txt" del "%TempStorage%\version.txt" /q 158 | if %offlinestorage%==0 if exist "%TempStorage%\whatsnew.txt" del "%TempStorage%\whatsnew.txt" /q 159 | 160 | if not exist "%TempStorage%" goto error_no_work_folder 161 | :: Commands to download files from server. 162 | if %Update_Activate%==1 if %offlinestorage%==0 if %alternative_curl%==0 call curl -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "%FilesHostedOn%/UPDATE/whatsnew_vff_downloader.txt" --output "%TempStorage%\whatsnew.txt" 163 | if %Update_Activate%==1 if %offlinestorage%==0 if %alternative_curl%==0 call curl -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "%FilesHostedOn%/UPDATE/version_vff_downloader.txt" --output "%TempStorage%\version.txt" 164 | if %Update_Activate%==1 if %offlinestorage%==0 if %alternative_curl%==1 call %alternative_curl_path% -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "%FilesHostedOn%/UPDATE/whatsnew_vff_downloader.txt" --output "%TempStorage%\whatsnew.txt" 165 | if %Update_Activate%==1 if %offlinestorage%==0 if %alternative_curl%==1 call %alternative_curl_path% -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "%FilesHostedOn%/UPDATE/version_vff_downloader.txt" --output "%TempStorage%\version.txt" 166 | set /a temperrorlev=%errorlevel% 167 | set /a updateserver=1 168 | ::Bind exit codes to errors here 169 | if "%temperrorlev%"=="6" goto no_internet_connection 170 | if not %temperrorlev%==0 set /a updateserver=0 171 | if exist "%TempStorage%\version.txt`" ren "%TempStorage%\version.txt`" "version.txt" 172 | if exist "%TempStorage%\whatsnew.txt`" ren "%TempStorage%\whatsnew.txt`" "whatsnew.txt" 173 | :: Copy the content of version.txt to variable. 174 | if exist "%TempStorage%\version.txt" set /p updateversion=<"%TempStorage%\version.txt" 175 | if not exist "%TempStorage%\version.txt" set /a updateavailable=0 176 | if %Update_Activate%==1 if exist "%TempStorage%\version.txt" set /a updateavailable=1 177 | :: If version.txt doesn't match the version variable stored in this batch file, it means that update is available. 178 | if %updateversion%==%version% set /a updateavailable=0 179 | 180 | if %Update_Activate%==1 if %updateavailable%==1 set /a updateserver=2 181 | if %Update_Activate%==1 if %updateavailable%==1 goto run_update 182 | 183 | goto read_config 184 | :run_update 185 | 186 | if %alternative_curl%==0 curl -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "https://patcher.rc24.xyz/update/RiiConnect24-Patcher/v1/UPDATE/update_assistant.bat" --output "update_assistant.bat" 187 | if %alternative_curl%==1 %alternative_curl_path% -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "https://patcher.rc24.xyz/update/RiiConnect24-Patcher/v1/UPDATE/update_assistant.bat" --output "update_assistant.bat" 188 | set temperrorlev=%errorlevel% 189 | if not %temperrorlev%==0 goto error_updating 190 | if "%run_once%"=="0" start "" update_assistant.bat -VFF_Downloader_Main_Exec 191 | if "%run_once%"=="1" start "" update_assistant.bat -VFF_Downloader_Main_Exec -run_once 192 | exit 193 | :error_updating 194 | ::echo [%date%] [%time:~0,5%] ERROR: Updating failed with exit code: %temperrorlev%>>"%MainFolder%\log.txt" 195 | goto read_config 196 | 197 | :error_cannot_copy 198 | 199 | if not %retry%==0 set /a retry=%retry%-1 200 | if /i %retry% GTR 0 goto download_files 201 | 202 | echo x=MsgBox("There was an error while copying files. This may happen due to incorrect configuration. Please run Install.bat and reconfigure the program. The program will now exit. Error code - %temperrorlev%",16,"RiiConnect24 .VFF Downloader for Dolphin")>"%appdata%\warning.vbs" 203 | start "" "%appdata%\warning.vbs" 204 | del "%config%\warning.vbs" 205 | exit 206 | 207 | :read_config 208 | echo --- [%date%] [%time:~0,8%] Reading configuration --- 209 | if not exist "%config%\forecast_region.txt" goto error_config 210 | if not exist "%config%\forecast_language.txt" goto error_config 211 | if not exist "%config%\news_region.txt" goto error_config 212 | 213 | if not exist "%config%\evc_country_code.txt" >"%config%\evc_country_code.txt" echo 0 214 | 215 | set /p forecast_region=<"%config%\forecast_region.txt" 216 | set /p templanguage=<"%config%\forecast_language.txt" 217 | set forecast_language=%templanguage:~9,1% 218 | set /p news_region=<"%config%\news_region.txt" 219 | set /p evc_country_code=<"%config%\evc_country_code.txt" 220 | 221 | set /p dolphin_installation=<"%config%\path_to_install.txt". 222 | goto download_files 223 | 224 | :waiting_for_internet 225 | echo No internet connection/could not connect to remote host. 226 | timeout 360 /nobreak >NUL 227 | goto download_files 228 | 229 | :error_curl_shutdown 230 | 231 | if not %retry%==0 set /a retry=%retry%-1 232 | if /i %retry% GTR 0 goto download_files 233 | 234 | echo x=MsgBox("There was an error while downloading files. The program will now exit. Error code - %temperrorlev%",16,"RiiConnect24 .VFF Downloader for Dolphin")>"%appdata%\warning.vbs" 235 | start "" "%appdata%\warning.vbs" 236 | del "%config%\warning.vbs" 237 | exit 238 | 239 | 240 | :download_files 241 | 242 | call :check_rc24_connection 243 | if %errorlevel%==1 goto server_dead 244 | echo. 245 | echo --- [%date%] [%time:~0,8%] Cleaning old files [Forecast Channel] --- 246 | ::Clean forecast channel data 247 | if exist "%dolphin_installation%\48414645\data\wc24dl.vff" del /q "%dolphin_installation%\48414645\data\wc24dl.vff" 248 | if exist "%dolphin_installation%\4841464a\data\wc24dl.vff" del /q "%dolphin_installation%\4841464a\data\wc24dl.vff" 249 | if exist "%dolphin_installation%\48414650\data\wc24dl.vff" del /q "%dolphin_installation%\48414650\data\wc24dl.vff" 250 | echo --- [%date%] [%time:~0,8%] Cleaning old files [News Channel] --- 251 | ::Clean news channel data 252 | if exist "%dolphin_installation%\48414745\data\wc24dl.vff" del /q "%dolphin_installation%\48414745\data\wc24dl.vff" 253 | if exist "%dolphin_installation%\4841474a\data\wc24dl.vff" del /q "%dolphin_installation%\4841474a\data\wc24dl.vff" 254 | if exist "%dolphin_installation%\48414750\data\wc24dl.vff" del /q "%dolphin_installation%\48414750\data\wc24dl.vff" 255 | 256 | 257 | echo --- [%date%] [%time:~0,8%] Cleaning old files [Everybody Votes Channel] --- 258 | ::Clean EVC data 259 | if exist "%dolphin_installation%\..\00010001\48414a45\data\wc24dl.vff" del /q "%dolphin_installation%\..\00010001\48414a45\data\wc24dl.vff" 260 | if exist "%dolphin_installation%\..\00010001\48414a50\data\wc24dl.vff" del /q "%dolphin_installation%\..\00010001\48414a50\data\wc24dl.vff" 261 | if exist "%dolphin_installation%\..\00010001\48414a4a\data\wc24dl.vff" del /q "%dolphin_installation%\..\00010001\48414a4a\data\wc24dl.vff" 262 | echo. 263 | echo --- [%date%] [%time:~0,8%] Downloading files --- 264 | ::Forecast 265 | :: Sending debug info from now on 266 | if %alternative_curl%==0 curl -s -S -L --user-agent "VFF-Downloader-for-Dolphin v%version% / %forecast_region% / %forecast_language%" --insecure "http://weather.wii.rc24.xyz/%forecast_language%/%forecast_region%/wc24dl.vff" --output "%dolphin_installation%\wc24dl_forecast.vff" 267 | if %alternative_curl%==1 %alternative_curl_path% -s -S -L --user-agent "VFF-Downloader-for-Dolphin v%version% / %forecast_region% / %forecast_language%" --insecure "http://weather.wii.rc24.xyz/%forecast_language%/%forecast_region%/wc24dl.vff" --output "%dolphin_installation%\wc24dl_forecast.vff" 268 | echo Done: 1/3 ^| Forecast Channel 269 | ::News 270 | if %alternative_curl%==0 curl -s -S -L --user-agent "VFF-Downloader-for-Dolphin v%version% / %news_region%" --insecure "http://news.wii.rc24.xyz/v2/%news_region%/wc24dl.vff" --output "%dolphin_installation%\wc24dl_news.vff" 271 | if %alternative_curl%==1 %alternative_curl_path% -s -S -L --user-agent "VFF-Downloader-for-Dolphin v%version% / %news_region%" --insecure "http://news.wii.rc24.xyz/v2/%news_region%/wc24dl.vff" --output "%dolphin_installation%\wc24dl_news.vff" 272 | echo Done: 2/3 ^| News Channel 273 | ::EVC 274 | if not "%evc_country_code%"=="0" if not "%evc_country_code%"=="1" if %alternative_curl%==0 curl -s -S -L --user-agent "VFF-Downloader-for-Dolphin v%version% / %evc_country_code%" --insecure "http://vt.wii.rc24.xyz/%evc_country_code%/wc24dl.vff" --output "%dolphin_installation%\wc24dl_evc.vff" 275 | if not "%evc_country_code%"=="0" if not "%evc_country_code%"=="1" if %alternative_curl%==1 %alternative_curl_path% -s -S -L --user-agent "VFF-Downloader-for-Dolphin v%version% / %evc_country_code%" --insecure "http://vt.wii.rc24.xyz/%evc_country_code%/wc24dl.vff" --output "%dolphin_installation%\wc24dl_evc.vff" 276 | if "%evc_country_code%"=="0" echo .. EVC Skipping 277 | if "%evc_country_code%"=="1" echo .. EVC Skipping 278 | if not "%evc_country_code%"=="0" if not "%evc_country_code%"=="1" echo Done: 3/3 ^| Everybody Votes Channel 279 | 280 | 281 | if not exist "%dolphin_installation%\48414645\data" md "%dolphin_installation%\48414645\data" 282 | if not exist "%dolphin_installation%\4841464a\data" md "%dolphin_installation%\4841464a\data" 283 | if not exist "%dolphin_installation%\48414650\data" md "%dolphin_installation%\48414650\data" 284 | if not exist "%dolphin_installation%\48414745\data" md "%dolphin_installation%\48414745\data" 285 | if not exist "%dolphin_installation%\4841474a\data" md "%dolphin_installation%\4841474a\data" 286 | if not exist "%dolphin_installation%\48414750\data" md "%dolphin_installation%\48414750\data" 287 | if not exist "%dolphin_installation%\..\00010001\48414a45\data" md "%dolphin_installation%\..\00010001\48414a45\data" 288 | if not exist "%dolphin_installation%\..\00010001\48414a50\data" md "%dolphin_installation%\..\00010001\48414a50\data" 289 | if not exist "%dolphin_installation%\..\00010001\48414a4a\data" md "%dolphin_installation%\..\00010001\48414a4a\data" 290 | 291 | echo. 292 | echo --- [%date%] [%time:~0,8%] Copying files into directory --- 293 | copy "%dolphin_installation%\wc24dl_forecast.vff" "%dolphin_installation%\48414645\data\wc24dl.vff" 294 | set /a temperrorlev=%errorlevel% 295 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 1st file copy fail - waiting and trying later --- 296 | if not %temperrorlev%==0 goto error_wait 297 | 298 | copy "%dolphin_installation%\wc24dl_forecast.vff" "%dolphin_installation%\4841464a\data\wc24dl.vff" 299 | set /a temperrorlev=%errorlevel% 300 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 2nd file copy fail - waiting and trying later --- 301 | if not %temperrorlev%==0 goto error_wait 302 | 303 | copy "%dolphin_installation%\wc24dl_forecast.vff" "%dolphin_installation%\48414650\data\wc24dl.vff" 304 | set /a temperrorlev=%errorlevel% 305 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 3rd file copy fail - waiting and trying later --- 306 | if not %temperrorlev%==0 goto error_wait 307 | 308 | copy "%dolphin_installation%\wc24dl_news.vff" "%dolphin_installation%\48414745\data\wc24dl.vff" 309 | set /a temperrorlev=%errorlevel% 310 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 4th file copy fail - waiting and trying later --- 311 | if not %temperrorlev%==0 goto error_wait 312 | 313 | copy "%dolphin_installation%\wc24dl_news.vff" "%dolphin_installation%\4841474a\data\wc24dl.vff" 314 | set /a temperrorlev=%errorlevel% 315 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 5th file copy fail - waiting and trying later --- 316 | if not %temperrorlev%==0 goto error_wait 317 | 318 | copy "%dolphin_installation%\wc24dl_news.vff" "%dolphin_installation%\48414750\data\wc24dl.vff" 319 | set /a temperrorlev=%errorlevel% 320 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 6th file copy fail - waiting and trying later --- 321 | if not %temperrorlev%==0 goto error_wait 322 | 323 | if not %evc_country_code%==0 if not %evc_country_code%==1 copy "%dolphin_installation%\wc24dl_evc.vff" "%dolphin_installation%\..\00010001\48414a45\data\wc24dl.vff" 324 | set /a temperrorlev=%errorlevel% 325 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 7th file copy fail - waiting and trying later --- 326 | if not %temperrorlev%==0 goto error_wait 327 | 328 | if not %evc_country_code%==0 if not %evc_country_code%==1 copy "%dolphin_installation%\wc24dl_evc.vff" "%dolphin_installation%\..\00010001\48414a50\data\wc24dl.vff" 329 | set /a temperrorlev=%errorlevel% 330 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 8th file copy fail - waiting and trying later --- 331 | if not %temperrorlev%==0 goto error_wait 332 | 333 | if not %evc_country_code%==0 if not %evc_country_code%==1 copy "%dolphin_installation%\wc24dl_evc.vff" "%dolphin_installation%\..\00010001\48414a4a\data\wc24dl.vff" 334 | set /a temperrorlev=%errorlevel% 335 | if not %temperrorlev%==0 echo --- [%date%] [%time:~0,8%] DEBUG: 9th file copy fail - waiting and trying later --- 336 | if not %temperrorlev%==0 goto error_wait 337 | 338 | 339 | echo --- [%date%] [%time:~0,8%] Delete temporary files --- 340 | del /q "%dolphin_installation%\wc24dl_news.vff" 341 | del /q "%dolphin_installation%\wc24dl_forecast.vff" 342 | if not %evc_country_code%==0 if not %evc_country_code%==1 del /q "%dolphin_installation%\wc24dl_evc.vff" 343 | 344 | 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" 345 | if %first_start%==1 start "" "%appdata%\warning.vbs" 346 | if %first_start%==1 set /a first_start=0 347 | 348 | set last_hour_download=%time:~0,2% 349 | set /a already_checked_this_hour=1 350 | 351 | if %run_once%==1 echo x=MsgBox("Done successfully - the program will now exit.",64,"RiiConnect24 .VFF Downloader for Dolphin"^)>"%appdata%\warning.vbs" 352 | if %run_once%==1 start "" "%appdata%\warning.vbs" 353 | if %run_once%==1 exit 354 | 355 | ::Reset retry counter 356 | title %retry% 357 | set /a retry=3 358 | 359 | goto count_time 360 | 361 | :count_time 362 | if not "%last_hour_download%"=="%time:~0,2%" set /a already_checked_this_hour=0 363 | if %already_checked_this_hour%==0 if /i "%time:~3,2%" GEQ "10" goto download_files 364 | 365 | echo --- [%date%] [%time:~0,8%] Waiting 600 seconds (10 minutes) --- 366 | call "%windir%\system32\timeout.exe" 600 /nobreak >NUL 367 | 368 | echo --- [%date%] [%time:~0,8%] Checking for update --- 369 | ::Check for update 370 | if %alternative_curl%==0 call curl -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "%FilesHostedOn%/UPDATE/version_vff_downloader.txt" --output "%TempStorage%\version.txt" 371 | if %alternative_curl%==1 call %alternative_curl_path% -s -S --user-agent "VFF-Downloader-for-Dolphin v%version%" --insecure "%FilesHostedOn%/UPDATE/version_vff_downloader.txt" --output "%TempStorage%\version.txt" 372 | if exist "%TempStorage%\version.txt" set /p updateversion=<"%TempStorage%\version.txt" 373 | if not %updateversion%==%version% goto run_update 374 | echo --- [%date%] [%time:~0,8%] Done checking for update --- 375 | 376 | goto count_time 377 | :error_wait 378 | echo --- [%date%] [%time:~0,8%] Waiting 180 seconds (3 minutes) --- 379 | call "%windir%\system32\timeout.exe" 180 /nobreak >NUL 380 | goto download_files -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Install.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal EnableExtensions EnableDelayedExpansion 3 | cd /d "%~dp0" 4 | echo Starting up... 5 | echo The program is starting... 6 | :: =========================================================================== 7 | :: .VFF File Downloader for Dolphin 8 | set version=1.0.9 9 | :: AUTHORS: KcrPL 10 | :: *************************************************************************** 11 | :: Copyright (c) 2020-2022 KcrPL, RiiConnect24 and it's (Lead) Developers 12 | :: =========================================================================== 13 | 14 | if exist temp.bat del /q temp.bat 15 | :script_start 16 | echo .. Setting up the variables 17 | :: Window size (Lines, columns) 18 | set mode=128,37 19 | %mode_path% %mode% 20 | set s=NUL 21 | :: Variables 22 | set /a detected=0 23 | set /a incorrect_region=0 24 | set /a temp=0 25 | set /a evc_country_code=0 26 | set user_name=%userprofile:~9% 27 | 28 | :: Issue workarounds 29 | set mode_path=C:\Windows\system32\mode.com 30 | set findstr_path=C:\Windows\system32\findstr.exe 31 | set timeout_path=C:\Windows\system32\timeout.exe 32 | set reg_path=C:\Windows\system32\reg.exe 33 | set /a rc24patcher=0 34 | if "%1"=="-RC24Patcher_assisted" set /a rc24patcher=1 35 | 36 | 37 | 38 | :: Window Title 39 | title .VFF File Downloader for Dolphin v%version% Created by @KcrPL 40 | 41 | set last_build=2022/05/28 42 | set at=11:47 CET 43 | :: ### Auto Update ### 44 | :: 1=Enable 0=Disable 45 | :: Update_Activate - If disabled, patcher will not even check for updates, default=1 46 | :: offlinestorage - Only used while testing of Update function, default=0 47 | :: FilesHostedOn - The website and path to where the files are hosted. WARNING! DON'T END WITH "/" 48 | :: MainFolder/TempStorage - folder that is used to keep version.txt and whatsnew.txt. These two files are deleted every startup but if offlinestorage will be set 1, they won't be deleted. 49 | set /a Update_Activate=1 50 | set /a offlinestorage=0 51 | set FilesHostedOn=https://patcher.rc24.xyz/update/VFF-Downloader-for-Dolphin/v1 52 | 53 | set MainFolder=%appdata%\VFF-Downloader-for-Dolphin 54 | set TempStorage=%appdata%\VFF-Downloader-for-Dolphin\internet\temp 55 | set config=%appdata%\VFF-Downloader-for-Dolphin\config 56 | 57 | set header=.VFF File Downloader - (C) KcrPL v%version% (Compiled on %last_build% at %at%) 58 | 59 | ::There's no need to check for the existance of MainFolder here since md creates folders recursively 60 | ::(e. g. if TempStorage doesn't exist, it checks for MainStorage and creates it if it doesn't exist, then checks for the "internet" folder in there and creates it if it doesn't exist 61 | ::and so on and so forth) 62 | if not exist "%TempStorage%" md "%TempStorage%" 63 | if not exist "%config%" md "%config%" 64 | :: Load background color from file if it exists 65 | if exist "%appdata%\RiiConnect24Patcher\internet\temp\background_color.txt" for /f "usebackq" %%a in ("%appdata%\RiiConnect24Patcher\internet\temp\background_color.txt") do color %%a 66 | 67 | if %rc24patcher%==1 goto 1 68 | 69 | if exist "%config%\evc_country_code.txt" set /p evc_country_code=<"%config%\evc_country_code.txt" 70 | if exist "%config%\evc_country_code.txt" if %evc_country_code%==1 goto begin_main_evc_update_notify 71 | 72 | goto begin_main 73 | :begin_main_evc_update_notify 74 | cls 75 | echo %header% 76 | echo `..```` 77 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` 78 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd 79 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs 80 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ 81 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: 82 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 83 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 84 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 85 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 86 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 87 | echo --------------------------------------------------------------------------------------------------------------------------- 88 | echo /---\ Notification. 89 | echo / \ 90 | echo / ^^! \ Welcome back^^! We've updated the app since you last visited us here. 91 | echo --------- We now support Everybody Votes Channel. 92 | echo. 93 | echo We will now help you configure the program. 94 | echo. 95 | echo Do you wish to continue? 96 | echo 1. Continue 2. Go back to Main Menu 3. Exit 97 | echo --------------------------------------------------------------------------------------------------------------------------- 98 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 99 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 100 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 101 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 102 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 103 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 104 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 105 | echo `. yddyo++: `-/oymNNNNNdy+:` 106 | echo -odhhhhyddmmmmmNNmhs/:` 107 | echo :syhdyyyyso+/-` 108 | set /p s=Choose: 109 | if %s%==1 goto begin_main_evc_update_1 110 | if %s%==2 goto begin_main 111 | if %s%==3 exit 112 | goto begin_main_evc_update_notify 113 | 114 | :begin_main_evc_update_1 115 | cls 116 | echo %header% 117 | echo ---------------------------------------------------------------------------------------------------------------------------- 118 | echo. 119 | echo Again, we're glad to see you again. 120 | echo. 121 | echo --- Everybody Votes Channel Configuration --- 122 | if %incorrect_region%==1 ( 123 | echo. 124 | echo :--------------------------------------------------: 125 | echo : Incorrect region number. Choose a correct one. : 126 | echo :--------------------------------------------------: 127 | ) 128 | set incorrect_region=0 129 | echo. 130 | echo Please choose a region to use with Everybody Votes Channel. 131 | echo. 132 | echo 016: Brazil 018: Canada 020: Chile 133 | echo 021: Colombia 022: Costa Rica 025: Ecuador 134 | echo 030: Guatemala 036: Mexico 040: Panama 135 | echo 042: Peru 049: United States 052: Venezuela 136 | echo 065: Australia 066: Austria 067: Belgium 137 | echo 074: Denmark 076: Finland 077: France 138 | echo 078: Germany 079: Greece 082: Ireland 139 | echo 083: Italy 088: Luxembourg 094: Netherlands 140 | echo 095: New Zealand 096: Norway 097: Poland 141 | echo 098: Portugal 105: Spain 107: Sweden 142 | echo 108: Switzerland 110: United Kingdom 143 | echo. 144 | set /p region=Choose your region: 145 | :1_detect_1_check 146 | set region_name=NUL 147 | if "%region%"=="016" set region_name=Brazil 148 | if "%region%"=="018" set region_name=Canad 149 | if "%region%"=="020" set region_name=Chile 150 | if "%region%"=="021" set region_name=Colombia 151 | if "%region%"=="022" set region_name=Costa Rica 152 | if "%region%"=="025" set region_name=Ecuador 153 | if "%region%"=="030" set region_name=Guatemala 154 | if "%region%"=="036" set region_name=Mexico 155 | if "%region%"=="040" set region_name=Panama 156 | if "%region%"=="042" set region_name=Peru 157 | if "%region%"=="049" set region_name=United States 158 | if "%region%"=="052" set region_name=Venezuela 159 | if "%region%"=="065" set region_name=Australia 160 | if "%region%"=="066" set region_name=Austria 161 | if "%region%"=="067" set region_name=Belgium 162 | if "%region%"=="074" set region_name=Denmark 163 | if "%region%"=="076" set region_name=Finland 164 | if "%region%"=="077" set region_name=France 165 | if "%region%"=="078" set region_name=Germany 166 | if "%region%"=="079" set region_name=Greece 167 | if "%region%"=="082" set region_name=Ireland 168 | if "%region%"=="083" set region_name=Italy 169 | if "%region%"=="088" set region_name=Luxembourg 170 | if "%region%"=="094" set region_name=Netherlands 171 | if "%region%"=="095" set region_name=New Zealand 172 | if "%region%"=="096" set region_name=Norway 173 | if "%region%"=="097" set region_name=Poland 174 | if "%region%"=="098" set region_name=Portugal 175 | if "%region%"=="105" set region_name=Spain 176 | if "%region%"=="107" set region_name=Sweden 177 | if "%region%"=="108" set region_name=Switzerland 178 | if "%region%"=="110" set region_name=United Kingdom 179 | 180 | if "%region_name%"=="NUL" ( 181 | set incorrect_region=1 182 | goto begin_main_evc_update_1 183 | ) 184 | >"%config%\evc_country_code.txt" echo %region% 185 | goto begin_main_evc_update_2 186 | 187 | :begin_main_evc_update_2 188 | cls 189 | echo %header% 190 | echo ----------------------------------------------------------------------------------------------------------------------------- 191 | echo. 192 | echo Alright, that's all I needed to know. 193 | echo. 194 | echo Sorry for taking your time, you can now come back to your work. 195 | echo ----------------------------------------------------------------------------------------------------------------------------- 196 | echo. 197 | echo Few things to note: 198 | echo 1) The changes will apply the next time .VFF Downloader is started. (After you restart your computer etc.) 199 | echo. 200 | echo 2) Everybody Votes Channel will not work if you won't use the save file from your Wii. 201 | echo If you don't have a Wii, I'm sorry but there's nothing you can do unless you find a save file. 202 | echo. 203 | echo 3) If you need to get Everybody Votes Channel .WAD file, please run RiiConnect24 Patcher. 204 | echo. 205 | echo That's it, press anything to close the program. 206 | pause>NUL 207 | exit 208 | 209 | :begin_main 210 | cls 211 | %mode_path% %mode% 212 | echo %header% 213 | echo `..```` 214 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` 215 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs 216 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd 217 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ .VFF Downloader for Dolphin 218 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: 219 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 220 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 1. Start 221 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 2. Settings 222 | if exist "%MainFolder%/VFF-Downloader-for-Dolphin.exe" echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 3. Run the VFF Downloader once. 223 | if exist "C:\Users\%user_name%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\VFF-Downloader-for-Dolphin.exe" echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 4. Manage startup VFF Downloader 224 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 225 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 226 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 227 | echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM: Do you have problems or want to contact us? 228 | echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM. Mail us at support@riiconnect24.net 229 | echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN 230 | echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd 231 | echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd 232 | echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy 233 | echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy. 234 | echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh. 235 | echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh` 236 | echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy 237 | echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys 238 | echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+- 239 | echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm 240 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 241 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 242 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 243 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 244 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 245 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 246 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 247 | echo `. yddyo++: `-/oymNNNNNdy+:` 248 | echo -odhhhhyddmmmmmNNmhs/:` 249 | echo :syhdyyyyso+/-` 250 | set /p s=Type a number that you can see above next to the command and hit ENTER: 251 | if %s%==1 goto begin_main1 252 | if %s%==2 goto settings 253 | if %s%==3 if exist "%MainFolder%/VFF-Downloader-for-Dolphin.exe" start "" "%MainFolder%/VFF-Downloader-for-Dolphin.exe" -run_once 254 | if %s%==4 goto settings 255 | if %s%==restart goto script_start 256 | if %s%==exit exit 257 | goto begin_main 258 | :settings 259 | cls 260 | echo %header% 261 | echo ----------------------------------------------------------------------------------------------------------------------------- 262 | echo. 263 | echo Settings 264 | echo. 265 | echo R. Return to main menu. 266 | echo. 267 | echo 1. Delete config file and delete VFF Downloader from startup. 268 | echo 2. Delete VFF Downloader from startup 269 | echo 3. If VFF Downloader is running, shut it down. 270 | set /p s=Choose: 271 | if /i %s%==r goto begin_main 272 | if %s%==1 call :settings_del_config 273 | if %s%==2 call :settings_del_vff_downloader 274 | if %s%==3 call :settings_taskkill 275 | 276 | if %temp%==1 goto script_start 277 | 278 | goto settings 279 | 280 | :settings_del_config 281 | ::Stop the downloader 282 | taskkill /im VFF-Downloader-for-Dolphin.exe /f 283 | ::Delete it's direcory 284 | rmdir /s /q "%appdata%\VFF-Downloader-for-Dolphin" 285 | ::And delete it out of the autostart dir 286 | del /q "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\VFF-Downloader-for-Dolphin.exe" 287 | 288 | set /a temp=1 289 | 290 | goto settings_end 291 | 292 | :settings_del_vff_downloader 293 | ::Stop the downloader 294 | taskkill /im VFF-Downloader-for-Dolphin.exe /f 295 | ::And delete it out of the autostart dir 296 | del /q "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\VFF-Downloader-for-Dolphin.exe" 297 | goto settings_end 298 | 299 | :settings_taskkill 300 | ::Stop the downloader 301 | taskkill /im VFF-Downloader-for-Dolphin.exe /f 302 | goto settings_end 303 | 304 | :settings_end 305 | echo Done^^! 306 | pause 307 | exit /b 0 308 | 309 | :begin_main_download_curl 310 | cls 311 | echo %header% 312 | echo. 313 | echo `..```` :-------------------------: 314 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Downloading curl... Please wait. 315 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd This can take some time... 316 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs :-------------------------: 317 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ 318 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: File 1 [3.5MB] out of 1 319 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 0%% [ ] 320 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 321 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 322 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 323 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 324 | echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM: 325 | echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM. 326 | echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN 327 | echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd 328 | echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy 329 | echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy. 330 | echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh. 331 | echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh` 332 | echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy 333 | echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys 334 | echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+- 335 | echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm 336 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 337 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 338 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 339 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 340 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 341 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 342 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 343 | echo `. yddyo++: `-/oymNNNNNdy+:` 344 | echo -odhhhhyddmmmmmNNmhs/:` 345 | echo :syhdyyyyso+/-` 346 | ::Try to download curl from our servers 347 | call powershell -command (new-object System.Net.WebClient).DownloadFile('"%FilesHostedOn%/curl.exe"', '"curl.exe"') 348 | ::If it downloaded successfully, continue on 349 | if %errorlevel%==0 goto begin_main1 350 | ::If it didn't, display error message 351 | goto begin_main_download_curl_error 352 | 353 | :begin_main_download_curl_error 354 | cls 355 | echo %header% 356 | echo `..```` 357 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` 358 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd 359 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs 360 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ 361 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: 362 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 363 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 364 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 365 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 366 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 367 | echo --------------------------------------------------------------------------------------------------------------------------- 368 | echo /---\ ERROR. 369 | echo / \ There was an error while downloading curl. 370 | echo / ^^! \ Curl is used for downloading files from update server. 371 | echo --------- Please restart your PC and try running the patcher again. 372 | echo If it won't work, please download curl and put it in a folder next to Install.bat 373 | echo. 374 | echo Press any key to open download page in browser and to return to menu. Remember to put the file next to Intall.bat 375 | echo --------------------------------------------------------------------------------------------------------------------------- 376 | echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm 377 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 378 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 379 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 380 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 381 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 382 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 383 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 384 | echo `. yddyo++: `-/oymNNNNNdy+:` 385 | echo -odhhhhyddmmmmmNNmhs/:` 386 | echo :syhdyyyyso+/-` 387 | pause>NUL 388 | start %FilesHostedOn%/curl.exe 389 | goto begin_main 390 | 391 | :begin_main1 392 | ::Curl returns 2 if it's called without arguments (CURLE_FAILED_INIT) 393 | curl 394 | ::So if the errorlevel isn't 2 now, we know that curl doesn't exist 395 | if not %errorlevel%==2 goto begin_main_download_curl 396 | 397 | cls 398 | echo %header% 399 | echo. 400 | echo `..```` :-------------------------: 401 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Checking for updates... 402 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd :-------------------------: 403 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs 404 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ 405 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: 406 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 407 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 408 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 409 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 410 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 411 | echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM: 412 | echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM. 413 | echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN 414 | echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd 415 | echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy 416 | echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy. 417 | echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh. 418 | echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh` 419 | echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy 420 | echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys 421 | echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+- 422 | echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm 423 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 424 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 425 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 426 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 427 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 428 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 429 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 430 | echo `. yddyo++: `-/oymNNNNNdy+:` 431 | echo -odhhhhyddmmmmmNNmhs/:` 432 | echo :syhdyyyyso+/-` 433 | 434 | ::If updating is disabled, skip the whole update check 435 | if %Update_Activate%==0 goto 1 436 | 437 | ::Define the updateVersion (so not that much error checking is needed) 438 | set updateversion=0.0.0 439 | ::Delete possibly outdated version.txt, whatsnew.txt and announcement.txt 440 | if %offlinestorage%==0 if exist "%TempStorage%\version.txt" del "%TempStorage%\version.txt" /q 441 | if %offlinestorage%==0 if exist "%TempStorage%\whatsnew.txt" del "%TempStorage%\whatsnew.txt" /q 442 | if exist "%TempStorage%\annoucement.txt" del /q "%TempStorage%\annoucement.txt" 443 | 444 | :: Commands to download files from server. 445 | ::If the downloader isn't supposed to get files from local storage (Offlinestorage=0, debug feature), download the newest version, changelog and announcement 446 | if %offlinestorage%==0 ( 447 | call curl -f -L -s -S --insecure "%FilesHostedOn%/UPDATE/whatsnew.txt" --output "%TempStorage%\whatsnew.txt" 448 | call curl -f -L -s -S --insecure "%FilesHostedOn%/UPDATE/version.txt" --output "%TempStorage%\version.txt" 449 | call curl -f -L -s -S --insecure "%FilesHostedOn%/UPDATE/annoucement.txt" --output "%TempStorage%\annoucement.txt" 450 | ) 451 | 452 | ::Bind exit codes to errors here 453 | ::If curl got a "CURLE_COULDNT_RESOLVE_HOST" error, 99% of the time the user doesn't have an active internet connection 454 | if "%errorlevel%"=="6" goto no_internet_connection 455 | 456 | ::Read out version.txt and store it in var updateVersion 457 | if exist "%TempStorage%\version.txt" for /f "usebackq" %%a in ("%TempStorage%\version.txt") do set updateversion=%%a 458 | ::If the update version is equal to the current version 459 | if "%updateversion%"=="%version%" ( 460 | ::No update is needed, so set updateavailable to 0 461 | set updateavailable=0 462 | ) else set updateavailable=1 463 | ::So if the two versions don't match, set updateavailable to 1 (For some reason I have to put this comment down here and not in the (), otherwise cmd just crashes) 464 | 465 | ::If there is an update available, notify the user 466 | if %updateavailable%==1 goto update_notice 467 | 468 | ::And if there is no update, just continue on 469 | goto 1 470 | :update_notice 471 | cls 472 | echo %header% 473 | echo. 474 | echo `..```` 475 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` 476 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd 477 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs 478 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ 479 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: 480 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 481 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 482 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 483 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 484 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 485 | echo ------------------------------------------------------------------------------------------------------------------------------ 486 | echo /---\ An update is available. 487 | echo / \ An update for this program is available. We suggest updating the VFF Downloader to the latest version. 488 | echo / ^^! \ 489 | echo --------- Current version: %version% 490 | echo New version: %updateversion% 491 | echo 1. Update 2. Dismiss 3. What's new in this update? 492 | echo ------------------------------------------------------------------------------------------------------------------------------ 493 | echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys 494 | echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+- 495 | echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm 496 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 497 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 498 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 499 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 500 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 501 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 502 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 503 | echo `. yddyo++: `-/oymNNNNNdy+:` 504 | echo -odhhhhyddmmmmmNNmhs/:` 505 | echo :syhdyyyyso+/-` 506 | set /p s= 507 | if %s%==1 goto update_files 508 | if %s%==2 goto 1 509 | if %s%==3 call :whatsnew 510 | goto update_notice 511 | 512 | :update_files 513 | cls 514 | echo %header% 515 | echo. 516 | echo `..```` 517 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` 518 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd 519 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs 520 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ 521 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: 522 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 523 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 524 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 525 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 526 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 527 | echo ------------------------------------------------------------------------------------------------------------------------------ 528 | echo /---\ Updating. 529 | echo / \ Please wait... 530 | echo / ^^! \ 531 | echo --------- VFF Downloader will restart shortly... 532 | echo. 533 | echo. 534 | echo ------------------------------------------------------------------------------------------------------------------------------ 535 | echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys 536 | echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+- 537 | echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm 538 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 539 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 540 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 541 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 542 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 543 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 544 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 545 | echo `. yddyo++: `-/oymNNNNNdy+:` 546 | echo -odhhhhyddmmmmmNNmhs/:` 547 | echo :syhdyyyyso+/-` 548 | :update_1 549 | ::Download the update helper 550 | curl -f -L -s -S --insecure "https://patcher.rc24.xyz/update/RiiConnect24-Patcher/v1/UPDATE/update_assistant.bat" --output "update_assistant.bat" 551 | ::If there was an error downloading, notify user 552 | if not %errorlevel%==0 goto error_updating 553 | ::So if there wasn't an error, start it with a flag so it knows what to update 554 | start update_assistant.bat -VFF_Downloader_Installer 555 | exit 556 | :error_updating 557 | cls 558 | echo %header% 559 | echo. 560 | echo `..```` 561 | echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` 562 | echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd 563 | echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs 564 | echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ 565 | echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: 566 | echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. 567 | echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN 568 | echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd 569 | echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 570 | echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 571 | echo ------------------------------------------------------------------------------------------------------------------------------ 572 | echo /---\ ERROR 573 | echo / \ There was an error while downloading the update assistant. 574 | echo / ^^! \ 575 | echo --------- Press any key to return to main menu. 576 | echo. 577 | echo. 578 | echo ------------------------------------------------------------------------------------------------------------------------------ 579 | echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys 580 | echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+- 581 | echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm 582 | echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+ 583 | echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm 584 | echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+ 585 | echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm 586 | echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/ 587 | echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy 588 | echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:` 589 | echo `. yddyo++: `-/oymNNNNNdy+:` 590 | echo -odhhhhyddmmmmmNNmhs/:` 591 | echo :syhdyyyyso+/-` 592 | pause>NUL 593 | goto begin_main 594 | 595 | :whatsnew 596 | cls 597 | echo %header% 598 | echo ------------------------------------------------------------------------------------------------------------------------------ 599 | echo. 600 | ::If the whatsnew.txt file exists 601 | if exist "%TempStorage%\whatsnew.txt" ( 602 | echo What's new in update %updateversion%? 603 | echo. 604 | ::Type it out 605 | type "%TempStorage%\whatsnew.txt" 606 | ) else echo Error. What's new file is not available. 607 | ::Else, (if it doesn't exist) display error message 608 | echo. 609 | pause>NUL 610 | exit /b 0 611 | 612 | :1 613 | cls 614 | echo %header% 615 | echo ----------------------------------------------------------------------------------------------------------------------------- 616 | echo. 617 | echo Welcome to the installation process of RiiConnect24 VFF Downloader for Dolphin^^! 618 | echo This program will allow you to use Forecast/News Channel on your Dolphin Emulator without the NEWS00006 error. 619 | echo. 620 | echo We're gonna assume your Dolphin Emulator is using the default NAND location. 621 | echo. 622 | echo 1. Continue 623 | if %rc24patcher%==0 echo 2. Exit 624 | if %rc24patcher%==1 echo 2. Return to RiiConnect24 Patcher. 625 | set /p s=Choose: 626 | if %s%==1 goto 1_detect 627 | if %s%==2 if %rc24patcher%==0 goto begin_main 628 | if %s%==2 if %rc24patcher%==1 goto:EOF 629 | goto 1 630 | :1_detect 631 | 632 | set /a using_default_location=1 633 | 634 | FOR /F "tokens=2* skip=2" %%a in ('%reg_path% query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal"') do set Documents_Folder=%%b 635 | 636 | set fix_detect=0 637 | echo %Documents_Folder% | %findstr_path% "%USERPROFILE%" && set /a fix_detect=1 638 | echo %Documents_Folder% | %findstr_path% "OneDrive" && set /a fix_detect=0 639 | 640 | ::if %fix_detect%==1 if exist "%Documents_Folder%\Dolphin Emulator\Wii\title\00010002" set detected=1 641 | ::if %fix_detect%==0 if exist "%userprofile%\Documents\Dolphin Emulator\Wii\title\00010002" set detected=1 642 | 643 | if %fix_detect%==1 ( 644 | set Documents_Folder=!userprofile! 645 | >"%config%\path_to_install.txt" echo !Documents_Folder!\Documents\Dolphin Emulator\Wii\title\00010002 646 | ) 647 | 648 | if %fix_detect%==0 ( 649 | set Documents_Folder=C:\Users\!username!\OneDrive 650 | >"%config%\path_to_install.txt" echo !Documents_Folder!\Documents\Dolphin Emulator\Wii\title\00010002 651 | ) 652 | 653 | goto 1_detect_1 654 | 655 | :1_detect_0 656 | :: Depreacted 657 | cls 658 | echo %header% 659 | echo ----------------------------------------------------------------------------------------------------------------------------- 660 | echo. 661 | echo Hmm... I couldn't find your Dolphin user configuration folder. 662 | echo Try running Dolphin and "Perform Online System Update" and then start News/Forecast Channel. 663 | echo. 664 | echo If it still won't work, choose "Set manually" 665 | echo. 666 | echo 1. Try again 667 | echo 2. Set manually 668 | if %rc24patcher%==0 echo 3. Exit 669 | if %rc24patcher%==1 echo 3. Return to RiiConnect24 Patcher. 670 | set /p s=Choose: 671 | if %s%==1 goto 1_detect 672 | if %s%==2 goto 1_detect_set 673 | if %s%==3 if %rc24patcher%==0 goto 1 674 | if %s%==3 if %rc24patcher%==1 goto:EOF 675 | goto 1_detect_0 676 | :1_detect_set 677 | cls 678 | echo %header% 679 | echo ----------------------------------------------------------------------------------------------------------------------------- 680 | echo. 681 | echo If you're using a different location for Wii's NAND memory on Dolphin, please set it here down below. 682 | echo. 683 | echo Default location: "C:\Users\%username%\Documents\Dolphin Emulator\Wii\title\00010002" 684 | echo ^(or if using Microsoft Account^): "C:\Users\%username%\OneDrive\Documents\Dolphin Emulator\Wii\title\00010002" 685 | echo. 686 | echo Make sure that the format of the location (folder structure) will remain the same, otherwise things will break. 687 | echo. 688 | set /p dolphin_location=Your location: 689 | echo %dolphin_location%> "%config%\path_to_install.txt" 690 | set /a using_default_location=0 691 | goto 1_detect_1 692 | :1_detect_1 693 | %mode_path% 128,45 694 | cls 695 | echo %header% 696 | echo ----------------------------------------------------------------------------------------------------------------------------- 697 | echo. 698 | echo --- Forecast Channel Configuration --- 699 | echo. 700 | echo Success^^! I've saved the Dolphin's NAND path for use later on. 701 | echo. 702 | if %using_default_location%==1 echo Current location: %Documents_Folder%\Dolphin Emulator\Wii\title\00010002 703 | if %using_default_location%==0 echo Current location: %dolphin_location% 704 | echo R. I'm using a different location for my NAND. 705 | 706 | if %incorrect_region%==1 ( 707 | echo. 708 | echo :--------------------------------------------------: 709 | echo : Incorrect region number. Choose a correct one. : 710 | echo :--------------------------------------------------: 711 | ) 712 | set incorrect_region=0 713 | echo. 714 | echo Now, you need to choose your region to use with Forecast Channel from the list below. 715 | echo. 716 | echo 001: Japan 033: Honduras 078: Germany 717 | echo 008: Anguilla 034: Jamaica 079: Greece 718 | echo 009: Antigua and Barbuda 035: Martinique 082: Ireland 719 | echo 010: Argentina 036: Mexico 083: Italy 720 | echo 011: Aruba 037: Monsterrat 088: Luxembourg 721 | echo 012: Bahamas 038: Netherlands Antilles 094: Netherlands 722 | echo 013: Barbados 039: Nicaragua 095: New Zealand 723 | echo 014: Belize 040: Panama 096: Norway 724 | echo 015: Bolivia 041: Paraguay 097: Poland 725 | echo 016: Brazil 042: Peru 098: Portugal 726 | echo 017: British Virgin Islands 043: St. Kitts and Nevis 099: Romania 727 | echo 018: Canada 044: St. Lucia 105: Spain 728 | echo 019: Cayman Islands 045: St. Vincent and the Grenadines 107: Sweden 729 | echo 020: Chile 046: Suriname 108: Switzerland 730 | echo 021: Colombia 047: Trinidad and Tobago 110: United Kingdom 731 | echo 022: Costa Rica 048: Turks and Caicos Islands 732 | echo 023: Dominica 049: United States 733 | echo 024: Dominican Republic 050: Uruguay 734 | echo 025: Ecuador 051: US Virgin Islands 735 | echo 026: El Salvador 052: Venezuela 736 | echo 027: French Guiana 065: Australia 737 | echo 028: Grenada 066: Austria 738 | echo 029: Guadeloupe 067: Belgium 739 | echo 030: Guatemala 074: Denmark 740 | echo 031: Guyana 076: Finland 741 | echo 032: Haiti 077: France 742 | echo. 743 | set /p region=Choose your region: 744 | if "%region%"=="r" goto 1_detect_set 745 | if "%region%"=="R" goto 1_detect_set 746 | goto 1_detect_1_check 747 | :1_detect_1_check 748 | set region_name=NUL 749 | if "%region%"=="001" set region_name=Japan 750 | if "%region%"=="008" set region_name=Anguilla 751 | if "%region%"=="009" set region_name=Antigua and Barbuda 752 | if "%region%"=="010" set region_name=Argentina 753 | if "%region%"=="011" set region_name=Aruba 754 | if "%region%"=="012" set region_name=Bahamas 755 | if "%region%"=="013" set region_name=Barbados 756 | if "%region%"=="014" set region_name=Belize 757 | if "%region%"=="015" set region_name=Bolivia 758 | if "%region%"=="016" set region_name=Brazil 759 | if "%region%"=="017" set region_name=British Virgin Islands 760 | if "%region%"=="018" set region_name=Canad 761 | if "%region%"=="019" set region_name=Cayman Islands 762 | if "%region%"=="020" set region_name=Chile 763 | if "%region%"=="021" set region_name=Colombia 764 | if "%region%"=="022" set region_name=Costa Rica 765 | if "%region%"=="023" set region_name=Dominica 766 | if "%region%"=="024" set region_name=Dominican Republic 767 | if "%region%"=="025" set region_name=Ecuador 768 | if "%region%"=="026" set region_name=El Salvador 769 | if "%region%"=="027" set region_name=French Guiana 770 | if "%region%"=="028" set region_name=Grenada 771 | if "%region%"=="029" set region_name=Guadeloupe 772 | if "%region%"=="030" set region_name=Guatemala 773 | if "%region%"=="031" set region_name=Guyana 774 | if "%region%"=="032" set region_name=Haiti 775 | if "%region%"=="033" set region_name=Honduras 776 | if "%region%"=="034" set region_name=Jamaica 777 | if "%region%"=="035" set region_name=Martinique 778 | if "%region%"=="036" set region_name=Mexico 779 | if "%region%"=="037" set region_name=Monsterrat 780 | if "%region%"=="038" set region_name=Netherlands Antilles 781 | if "%region%"=="039" set region_name=Nicaragua 782 | if "%region%"=="040" set region_name=Panama 783 | if "%region%"=="041" set region_name=Paraguay 784 | if "%region%"=="042" set region_name=Peru 785 | if "%region%"=="043" set region_name=St. Kitts and Nevis 786 | if "%region%"=="044" set region_name=St. Lucia 787 | if "%region%"=="045" set region_name=St. Vincent and the Grenadines 788 | if "%region%"=="046" set region_name=Suriname 789 | if "%region%"=="047" set region_name=Trinidad and Tobago 790 | if "%region%"=="048" set region_name=Turks and Caicos Islands 791 | if "%region%"=="049" set region_name=United States 792 | if "%region%"=="050" set region_name=Uruguay 793 | if "%region%"=="051" set region_name=US Virgin Islands 794 | if "%region%"=="052" set region_name=Venezuela 795 | if "%region%"=="065" set region_name=Australia 796 | if "%region%"=="066" set region_name=Austria 797 | if "%region%"=="067" set region_name=Belgium 798 | if "%region%"=="074" set region_name=Denmark 799 | if "%region%"=="076" set region_name=Finland 800 | if "%region%"=="077" set region_name=France 801 | if "%region%"=="078" set region_name=Germany 802 | if "%region%"=="079" set region_name=Greece 803 | if "%region%"=="082" set region_name=Ireland 804 | if "%region%"=="083" set region_name=Italy 805 | if "%region%"=="088" set region_name=Luxembourg 806 | if "%region%"=="094" set region_name=Netherlands 807 | if "%region%"=="095" set region_name=New Zealand 808 | if "%region%"=="096" set region_name=Norway 809 | if "%region%"=="097" set region_name=Poland 810 | if "%region%"=="098" set region_name=Portugal 811 | if "%region%"=="099" set region_name=Romania 812 | if "%region%"=="105" set region_name=Spain 813 | if "%region%"=="107" set region_name=Sweden 814 | if "%region%"=="108" set region_name=Switzerland 815 | if "%region%"=="110" set region_name=United Kingdom 816 | 817 | if "%region_name%"=="NUL" ( 818 | set incorrect_region=1 819 | goto 1_detect_1 820 | ) 821 | 822 | %mode_path% %mode% 823 | goto 2_detect_languages 824 | :2_detect_languages 825 | cls 826 | echo %header% 827 | echo ----------------------------------------------------------------------------------------------------------------------------- 828 | echo. 829 | echo --- Forecast Channel Configuration --- 830 | echo. 831 | echo The region that you've chosen is: %region_name%. 832 | echo. 833 | echo Now... checking languages that you can use. 834 | echo This can take some time. 835 | 836 | ::set %region_available_0%, %region_available_1%, %region_available_2%, ... %region_available_6% to 0 837 | for /L %%a in (0,1,6) do set region_available_%%a=0 838 | 839 | ::Use a loop to, well, loop through the numbers 0 to 6 840 | for /L %%a in (0,1,6) do ( 841 | ::Check if the region is available 842 | curl -I --insecure -s -S http://weather.wii.rc24.xyz/%%a/%region%/wc24dl.vff | %findstr_path% "HTTP/1.1" | %findstr_path% "200 OK" >NUL 843 | ::And if it is (findstr returns errorlevel 0 on success), set the var to 1 844 | if !errorlevel!==0 set region_available_%%a=1 845 | ) 846 | 847 | goto 2_show_languages 848 | :2_show_languages 849 | cls 850 | echo %header% 851 | echo ----------------------------------------------------------------------------------------------------------------------------- 852 | echo. 853 | echo --- Forecast Channel Configuration --- 854 | echo. 855 | echo Languages available for %region_name%. 856 | echo. 857 | echo Here is a list of languages available. Cities name will appear in the language that you will select. 858 | echo. 859 | echo Choose one: 860 | echo (If you can see more, choose a language that you understand) 861 | echo. 862 | echo R. Return. 863 | echo. 864 | if %region_available_0%==1 echo 0. Japanese 865 | if %region_available_1%==1 echo 1. English 866 | if %region_available_2%==1 echo 2. German 867 | if %region_available_3%==1 echo 3. French 868 | if %region_available_4%==1 echo 4. Spanish 869 | if %region_available_5%==1 echo 5. Italien 870 | if %region_available_6%==1 echo 6. Dutch 871 | echo. 872 | set /p language=Choose language: 873 | if /i %language%==r goto 1_detect_1 874 | ::If the user didn't select something between 0 and 6, ask again 875 | if not %language% geq 0 if not %language% leq 6 goto 2_show_languages 876 | 877 | ::If the selected region is available, save the config 878 | if !region_available_%language%!==1 goto 2_forecast_save_config 879 | 880 | ::So if the selected language is valid but just not available, also ask again 881 | goto 2_show_languages 882 | 883 | :2_forecast_save_config 884 | ::Save config 885 | >"%config%\forecast_region.txt" echo %region% 886 | >"%config%\forecast_language.txt" echo language_%language% 887 | 888 | goto 3_news 889 | :3_news 890 | cls 891 | echo %header% 892 | echo ----------------------------------------------------------------------------------------------------------------------------- 893 | echo. 894 | echo --- News Channel Configuration --- 895 | echo. 896 | echo Alright, alright, alright! I've saved Forecast Channel configuration. 897 | echo Time for News Channel. 898 | echo. 899 | echo This time, it's easier. Just choose the region/language for News Channel. 900 | echo. 901 | echo 0. Japanese 902 | echo 1. English (USA) 903 | echo 2. English (Europe) 904 | echo 3. Germany 905 | echo 4. French 906 | echo 5. Spanish 907 | echo 6. Italian 908 | echo 7. Dutch 909 | set /p region_news=Choose: 910 | 911 | ::If the user did select something between 0 and 7, continue on 912 | if %region_news% geq 0 if %region_news% leq 7 goto 3_news_save_config 913 | 914 | ::Otherwise, ask again 915 | goto 3_news 916 | 917 | :3_news_save_config 918 | if %region_news%==0 echo 0_Japan>"%config%\news_region.txt" 919 | if %region_news%==1 echo 1_America>"%config%\news_region.txt" 920 | if %region_news%==2 echo 1_Europe>"%config%\news_region.txt" 921 | if %region_news%==3 echo 2_Europe>"%config%\news_region.txt" 922 | if %region_news%==4 echo 3_International>"%config%\news_region.txt" 923 | if %region_news%==5 echo 4_International>"%config%\news_region.txt" 924 | if %region_news%==6 echo 5_Europe>"%config%\news_region.txt" 925 | if %region_news%==7 echo 6_Europe>"%config%\news_region.txt" 926 | 927 | goto 3_evc 928 | :3_evc 929 | cls 930 | echo %header% 931 | echo ----------------------------------------------------------------------------------------------------------------------------- 932 | echo. 933 | echo --- Everybody Votes Channel Configuration --- 934 | if %incorrect_region%==1 ( 935 | echo. 936 | echo :--------------------------------------------------: 937 | echo : Incorrect region number. Choose a correct one. : 938 | echo :--------------------------------------------------: 939 | ) 940 | set incorrect_region=0 941 | echo. 942 | echo We're nearing to an end. Please choose a region to use with Everybody Votes Channel. 943 | echo. 944 | echo 016: Brazil 018: Canada 020: Chile 945 | echo 021: Colombia 022: Costa Rica 025: Ecuador 946 | echo 030: Guatemala 036: Mexico 040: Panama 947 | echo 042: Peru 049: United States 052: Venezuela 948 | echo 065: Australia 066: Austria 067: Belgium 949 | echo 074: Denmark 076: Finland 077: France 950 | echo 078: Germany 079: Greece 082: Ireland 951 | echo 083: Italy 088: Luxembourg 094: Netherlands 952 | echo 095: New Zealand 096: Norway 097: Poland 953 | echo 098: Portugal 105: Spain 107: Sweden 954 | echo 108: Switzerland 110: United Kingdom 955 | echo. 956 | set /p region=Choose your region: 957 | :1_detect_1_check 958 | set region_name=NUL 959 | if "%region%"=="016" set region_name=Brazil 960 | if "%region%"=="018" set region_name=Canad 961 | if "%region%"=="020" set region_name=Chile 962 | if "%region%"=="021" set region_name=Colombia 963 | if "%region%"=="022" set region_name=Costa Rica 964 | if "%region%"=="025" set region_name=Ecuador 965 | if "%region%"=="030" set region_name=Guatemala 966 | if "%region%"=="036" set region_name=Mexico 967 | if "%region%"=="040" set region_name=Panama 968 | if "%region%"=="042" set region_name=Peru 969 | if "%region%"=="049" set region_name=United States 970 | if "%region%"=="052" set region_name=Venezuela 971 | if "%region%"=="065" set region_name=Australia 972 | if "%region%"=="066" set region_name=Austria 973 | if "%region%"=="067" set region_name=Belgium 974 | if "%region%"=="074" set region_name=Denmark 975 | if "%region%"=="076" set region_name=Finland 976 | if "%region%"=="077" set region_name=France 977 | if "%region%"=="078" set region_name=Germany 978 | if "%region%"=="079" set region_name=Greece 979 | if "%region%"=="082" set region_name=Ireland 980 | if "%region%"=="083" set region_name=Italy 981 | if "%region%"=="088" set region_name=Luxembourg 982 | if "%region%"=="094" set region_name=Netherlands 983 | if "%region%"=="095" set region_name=New Zealand 984 | if "%region%"=="096" set region_name=Norway 985 | if "%region%"=="097" set region_name=Poland 986 | if "%region%"=="098" set region_name=Portugal 987 | if "%region%"=="105" set region_name=Spain 988 | if "%region%"=="107" set region_name=Sweden 989 | if "%region%"=="108" set region_name=Switzerland 990 | if "%region%"=="110" set region_name=United Kingdom 991 | 992 | if "%region_name%"=="NUL" ( 993 | set incorrect_region=1 994 | goto 3_evc 995 | ) 996 | >"%config%\evc_country_code.txt" echo %region% 997 | goto 3_evc_note 998 | 999 | :3_evc_note 1000 | cls 1001 | echo %header% 1002 | echo ----------------------------------------------------------------------------------------------------------------------------- 1003 | echo. 1004 | echo Note for Everybody Votes Channel: 1005 | echo. 1006 | echo 1) Everybody Votes Channel will not work if you won't use the save file from your Wii. 1007 | echo If you don't have a Wii, I'm sorry but there's nothing you can do unless you find a save file. 1008 | echo. 1009 | echo 2) If you need to get Everybody Votes Channel .WAD file, please run RiiConnect24 Patcher. 1010 | echo. 1011 | echo Press any key to continue. 1012 | pause>NUL 1013 | goto 4 1014 | 1015 | 1016 | 1017 | :4 1018 | cls 1019 | echo %header% 1020 | echo ----------------------------------------------------------------------------------------------------------------------------- 1021 | echo. 1022 | echo Great^^! The configuration part is done^^! 1023 | echo. 1024 | echo Now, you'll need to choose how you want to run the program: 1025 | echo. 1026 | echo 1. Manually 1027 | echo - You will need to run the program every time you want to download the files. 1028 | echo. 1029 | echo 2. Startup 1030 | echo - The program will be put into startup and it will start with Windows. 1031 | echo - The program is lightweight. Even if you have an HDD, it won't slow down your PC. 1032 | echo - The program will run in background 1033 | echo - It uses 0%% of your CPU and about 4-6MB of RAM. 1034 | echo - The source code is on GitHub. 1035 | echo - It will show Message Boxes if it encounters an error. 1036 | echo. 1037 | set /p s=Choose: 1038 | if %s%==1 goto 4_manual 1039 | if %s%==2 goto 4_startup 1040 | goto 4 1041 | 1042 | :4_manual 1043 | cls 1044 | echo %header% 1045 | echo ----------------------------------------------------------------------------------------------------------------------------- 1046 | echo. 1047 | ::If a previous file exists, delete it 1048 | taskkill /im VFF-Downloader-for-Dolphin.exe /f 1049 | if exist "%MainFolder%/VFF-Downloader-for-Dolphin.exe" del /q "%MainFolder%/VFF-Downloader-for-Dolphin.exe" 1050 | echo Downloading the script... please wait. 1051 | curl -f -L -s -S --insecure "%FilesHostedOn%/UPDATE/VFF-Downloader-for-Dolphin.exe" --output "%MainFolder%/VFF-Downloader-for-Dolphin.exe" 1052 | goto 4_manual_2 1053 | :4_manual_2 1054 | cls 1055 | echo %header% 1056 | echo ----------------------------------------------------------------------------------------------------------------------------- 1057 | echo. 1058 | echo We're done^^! 1059 | echo Now, if you want to download the files for Dolphin, there will be an option to do so in the Main Menu. 1060 | echo. 1061 | echo Come back at 10th minute of every hour - that's when scripts generate on our servers^^! ^^(For example, 8:10AM, 9:10AM, 4:10PM etc.^^) 1062 | echo. 1063 | if %rc24patcher%==0 echo Press any key to go back to main menu. 1064 | if %rc24patcher%==1 echo Press any key to go back to RiiConnect24 Patcher. 1065 | pause>NUL 1066 | if %rc24patcher%==0 goto script_start 1067 | if %rc24patcher%==1 goto:EOF 1068 | :4_startup 1069 | cls 1070 | echo %header% 1071 | echo ----------------------------------------------------------------------------------------------------------------------------- 1072 | echo. 1073 | echo Great^^! 1074 | echo If you ever want to uninstall it from startup, visit this program. 1075 | echo In the main menu, there will be an option to manage the app from the startup. You can disable it there. 1076 | echo. 1077 | echo Press any key to download and install the program to startup. 1078 | echo It will use following settings: 1079 | echo. 1080 | echo Forecast Channel region: %region_name% 1081 | echo Forecast Channel language code: %language% 1082 | echo News Channel region code: %region_news% 1083 | echo. 1084 | pause 1085 | goto 4_startup_install 1086 | 1087 | :4_startup_install 1088 | cls 1089 | echo %header% 1090 | echo ----------------------------------------------------------------------------------------------------------------------------- 1091 | echo. 1092 | ::If a previous file exists, delete it 1093 | taskkill /im VFF-Downloader-for-Dolphin.exe /f 1094 | if exist "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\VFF-Downloader-for-Dolphin.exe" del /q "C:\Users\%user_name%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\VFF-Downloader-for-Dolphin.exe" 1095 | echo Downloading the script... please wait. 1096 | ::Download the new file into the startup dir 1097 | curl -f -L -s -S --insecure "%FilesHostedOn%/UPDATE/VFF-Downloader-for-Dolphin.exe" --output "C:\Users\%user_name%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\VFF-Downloader-for-Dolphin.exe" 1098 | ::And if curl was needed (windows 8), also copy that 1099 | if exist curl.exe copy /Y "curl.exe" "%MainFolder%" 1100 | 1101 | goto 4_startup_done 1102 | :4_startup_done 1103 | cls 1104 | echo %header% 1105 | echo ----------------------------------------------------------------------------------------------------------------------------- 1106 | echo. 1107 | echo Done^^! 1108 | if %rc24patcher%==0 echo The background process has been started. Press any key to exit from this program. 1109 | if %rc24patcher%==1 echo Press any key to return to RiiConnect24 Patcher. The program has been started. 1110 | echo You will get a notification after the successful first setup. 1111 | start "" "C:\Users\%user_name%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\VFF-Downloader-for-Dolphin.exe" -first_start 1112 | pause>NUL 1113 | if %rc24patcher%==0 exit 1114 | if %rc24patcher%==1 GOTO:EOF 1115 | --------------------------------------------------------------------------------