![]() If exist " %MainFolder%\random_ident.txt " for /f "usebackq " %%a in ( " %MainFolder%\random_ident.txt ") do set random_identifier = %%a If not exist " %MainFolder%\random_ident.txt " ( If not " %os% " = "Windows_NT " goto not_windows_nt :: Trying to prevent running from OS that is not Windows. If not exist " %TempStorage% " md " %TempStorage% " If not exist " %MainFolder% " md " %MainFolder% " Set header_for_loops =RiiConnect24 Patcher - KcrPL v %version% - Updated on %last_build% at %at% If ?ta% = 1 set header =RiiConnect24 Patcher - (C) KcrPL v %version% (Updated on %last_build% at %at%) If ?ta% = 0 set header =RiiConnect24 Patcher - (C) KcrPL v %version% (Updated on %last_build% at %at%) If exist " %TempStorage%\announcement " rmdir /s /q " %TempStorage%\announcement " > NUL If exist " %TempStorage% " del /s /q " %TempStorage% " > NUL Set TempStorage = %appdata%\RiiConnect24Patcher\internet\temp Set MainFolder = %appdata%\RiiConnect24Patcher Set useragent =-user-agent "RiiConnect24 Patcher Windows v %version% " If " %1 " = "-preboot " set /a preboot_environment = 1 ![]() ![]() These two files are deleted every startup but if offlinestorage will be set 1, they won't be deleted. :: MainFolder/TempStorage - folder that is used to keep version.txt and whatsnew.txt. :: FilesHostedOn - The website and path to where the files are hosted. :: offlinestorage - Only used while testing of Update function, default=0 :: Update_Activate - If disabled, patcher will not even check for updates, default=1 If ?ta% = 0 set title =RiiConnect24 Patcher v %version% Created by ?ta% = 1 set title =RiiConnect24 Patcher v %version% Created by %title% Set /a patching_size_required_wii_sd_card =%size1% *1024įor /F "Delims= " %%A In ('ver') do set " windows_version = %%A " Set /a size1 =%wii_sd_card_copy_requires% *1024 :: RiiConnect24 Patching for Wii - SD Card Size Requirement (in MB) Set /a patching_size_required_wiiu_bytes =%size1% *1024 Set /a size1 =%wiiu_patching_requires% *1024 :: RiiConnect24 Patching for Wii U (in MB) Set /a patching_size_required_wii_bytes =%size1% *1024 Set /a size1 =%wii_patching_requires% *1024 Set /a troubleshoot_auto_tool_notification = 0 ::This variable controls if the current version of the patcher is in the stable or beta branch. Set timeout_path =C:\Windows\system32\timeout.exe ![]() ![]() Set findstr_path =C:\Windows\system32\findstr.exe ::if exist update_assistant.bat del /q update_assistant.bat :: Copyright (c) 2018-2022 KcrPL, RiiConnect24 and it's (Lead) Developers If %conhost_enable% = 1 if not " %1 " = "-conhost " ( Ver | C:\Windows\system32\findstr.exe "10.0 " > NUL
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |