mirror of
https://github.com/Trixarian/NetherSX2-patch.git
synced 2024-11-27 06:10:27 +00:00
Added hash check to avoid patching AtherSX2 4248
This commit is contained in:
parent
c0602d7b16
commit
aaa1703d97
BIN
lib/md5sum.exe
Normal file
BIN
lib/md5sum.exe
Normal file
Binary file not shown.
@ -1,6 +1,7 @@
|
||||
@echo off
|
||||
:: Allows for Terminal Colors to be used
|
||||
set col=lib\cmdcolor.exe
|
||||
set md5hash=c98b0e4152d3b02fbfb9f62581abada5
|
||||
|
||||
:: Display Banner
|
||||
echo \033[91m======================== | %col%
|
||||
@ -9,6 +10,12 @@ echo \033[91m======================== | %col%
|
||||
|
||||
:: Check if the NetherSX2 APK exists and if it's named
|
||||
if not exist 15210-v1.5-4248-noads.apk goto nofile
|
||||
:: Check if the NetherSX2 APK isn't just a renamed AetherSX2 4248 APK
|
||||
for /f %%f in ('""lib\md5sum.exe" "15210-v1.5-4248-noads.apk""') do (
|
||||
if %%f equ %md5hash% (
|
||||
goto nopatch
|
||||
)
|
||||
)
|
||||
|
||||
:: Ad Services Cleanup
|
||||
<nul set /p "=\033[96mRemoving the \033[91mAd Services leftovers... " | %col%
|
||||
@ -80,5 +87,10 @@ echo \033[31mError: No APK found or wrong one provided! | %col%
|
||||
echo \033[31mPlease provide a copy of NetherSX2 named 15210-v1.5-4248-noads.apk! | %col%
|
||||
goto end
|
||||
|
||||
:nopatch
|
||||
echo \033[31mError: Cannot patch copies of AetherSX2 4248 without breaking them! | %col%
|
||||
echo \033[31mPlease provide a copy of NetherSX2 named 15210-v1.5-4248-noads.apk! | %col%
|
||||
goto end
|
||||
|
||||
:end
|
||||
pause
|
@ -1,6 +1,7 @@
|
||||
@echo off
|
||||
:: Allows for Terminal Colors to be used
|
||||
set col=lib\cmdcolor.exe
|
||||
set md5hash=c98b0e4152d3b02fbfb9f62581abada5
|
||||
|
||||
:: Display Banner
|
||||
echo \033[91m======================== | %col%
|
||||
@ -9,6 +10,12 @@ echo \033[91m======================== | %col%
|
||||
|
||||
:: Check if the NetherSX2 APK exists and if it's named
|
||||
if not exist 15210-v1.5-4248-noads.apk goto nofile
|
||||
:: Check if the NetherSX2 APK isn't just a renamed AetherSX2 4248 APK
|
||||
for /f %%f in ('""lib\md5sum.exe" "15210-v1.5-4248-noads.apk""') do (
|
||||
if %%f equ %md5hash% (
|
||||
goto nopatch
|
||||
)
|
||||
)
|
||||
|
||||
:: Updates to Latest GameDB with features removed that are not supported by the libemucore.so from March 13th
|
||||
<nul set /p "=\033[96mUpdating the \033[91mGameDB... " | %col%
|
||||
@ -47,5 +54,10 @@ echo \033[31mError: No APK found or wrong one provided! | %col%
|
||||
echo \033[31mPlease provide a copy of NetherSX2 named 15210-v1.5-4248-noads.apk! | %col%
|
||||
goto end
|
||||
|
||||
:nopatch
|
||||
echo \033[31mError: Cannot patch copies of AetherSX2 4248 without breaking them! | %col%
|
||||
echo \033[31mPlease provide a copy of NetherSX2 named 15210-v1.5-4248-noads.apk! | %col%
|
||||
goto end
|
||||
|
||||
:end
|
||||
pause
|
Loading…
Reference in New Issue
Block a user