Changed to using cmd & fixed download bug

Also uploading the converted GameDB to give people the option of using it
This commit is contained in:
Trixarian 2024-04-26 14:21:55 +02:00
parent 6455099e11
commit 542826c677
4 changed files with 63929 additions and 402 deletions

File diff suppressed because it is too large Load Diff

62658
assets/GameIndex[fixed].yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -63,6 +63,7 @@ if not exist "%output_path%\" md "%output_path%"
:: Patching the file
<nul set /p "=\033[96mPatching to \033[91mNetherSX2... " | %col%
for /r %%i in (*.apk) do "%p2f%lib\xdelta.exe" -d -f -s "%%i" %xdelta_patch% "%output_path%\%%~ni%patched_end%.apk"
ren "%output_path%\15210-v1.5-4248-noads.apk" 15210-v1.9-4248-noads.apk
echo \033[92m[Done] | %col%
timeout /t 3
cd "%output_path%"
@ -93,7 +94,7 @@ goto end
:nofile
<nul set /p "=\033[96mDownloading \033[94mAetherSX2... " | %col%
powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://github.com/Trixarian/NetherSX2-patch/releases/download/0.0/15210-v1.5-4248.apk','15210-v1.9-4248.apk')"
powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://github.com/Trixarian/NetherSX2-patch/releases/download/0.0/15210-v1.5-4248.apk','15210-v1.5-4248.apk')"
echo \033[92m[Done] | %col%
goto patch

View File

@ -24,35 +24,23 @@ for /r %%i in (*.apk) do (
for /f %%f in ('""lib\md5sum.exe" "%%i""') do (
if %%f equ %md5hash% (
ren "%%i" 15210-v1.5-4248.apk >nul 2>&1
)
)
)
)
:: Check if an NetherSX2 APK exists and if it's named correctly
if exist 15210-v1.5-4248-noads.apk set vername=15210-v1.5-4248-noads
if exist 15210-v1.8-4248-noads.apk set vername=15210-v1.8-4248-noads
if exist 15210-v1.8-4248-noads.apk (
set /A vercheck=1
set vername=15210-v1.8-4248-noads
)
if exist %vername%[patched].apk (
set /A vercheck=1
ren %vername%[patched].apk %vername%.apk >nul 2>&1
)
if exist 15210-v1.5-4248.apk goto patch
if not exist %vername%.apk (
goto getapk
) else (
:: Check if we're patching our self-produced NetherSX2 apk
for /f %%f in ('""lib\md5sum.exe" "%vername%.apk""') do (
if %%f neq %verhash% (
goto update
) else (
set /A vercheck=1
goto update
)
if %%f neq %oldhash% (
goto update
) else (
set /A vercheck=1
goto update
)
)
goto update
)
:patch