Should stop breaking the apk now...

This commit is contained in:
Trixarian 2024-03-23 17:29:43 +02:00
parent 2819613c97
commit 144153329e
4 changed files with 2 additions and 25 deletions

BIN
builder/lib/msvcp120.dll Normal file

Binary file not shown.

BIN
lib/msvcp120.dll Normal file

Binary file not shown.

View File

@ -8,8 +8,6 @@ set ver=v1.9
set patch=patch.xdelta
set vername=15210-%ver%-4248-noads
set md5hash=c98b0e4152d3b02fbfb9f62581abada5
set verhash=2406fc75e1bca97a633538da282fe282
set oldhash=aec3ef2433d951a2b7f56f9a4315dca2
set /A vercheck=0
:: Display Banner
@ -96,16 +94,6 @@ if %vercheck%==0 (
echo \033[92m[Done] | %col%
)
:: Adds Additional Options to App Settings
if %vercheck%==0 (
<nul set /p "=\033[96mAdding more options to \033[91mApp Settings... " | %col%
lib\aapt r %vername%[patched].apk res/xml/advanced_preferences.xml
lib\aapt a %vername%[patched].apk res/xml/advanced_preferences.xml >nul 2>&1
lib\aapt r %vername%[patched].apk res/xml/graphics_preferences.xml
lib\aapt a %vername%[patched].apk res/xml/graphics_preferences.xml >nul 2>&1
echo \033[92m[Done] | %col%
)
:: Updates the FAQ to show that we're using the latest version of NetherSX2
if %vercheck%==0 (
<nul set /p "=\033[96mUpdating the \033[91mFAQ... " | %col%

View File

@ -17,7 +17,7 @@ display_light_red() {
# start of script
clear
printf "\e[1;91m==========================\n"
printf " NetherSX2 Patcher v1.8\n"
printf " NetherSX2 Patcher v1.9\n"
printf "==========================\e[0m\n"
# Check if the NetherSX2 APK exists and if it's named
@ -30,7 +30,7 @@ if [ ! -f "15210-v1.5-4248.apk" ]; then
fi
if [ ! -f "15210-v1.5-4248-noads.apk" ]; then
xdelta3 -d -f -s 15210-v1.5-4248.apk builder/lib/nethersx2.xdelta 15210-v1.5-4248-noads.apk
xdelta3 -d -f -s 15210-v1.5-4248.apk lib/patch.xdelta 15210-v1.5-4248-noads.apk
if [ ! $? -eq 0 ]; then
printf "Failed to apply nethersx2 patch to APK!\n"
exit 1
@ -66,17 +66,6 @@ if command -v "aapt" >/dev/null 2>&1; then
printf "\e[1;32m[Already removed]\e[0m\n"
fi
# Adds Additional Options to App Settings
display_cyan "Adding "
display_light_red "Additional Options... "
aapt r 15210-v1.5-4248-patched.apk res/xml/advanced_preferences.xml
aapt a 15210-v1.5-4248-patched.apk res/xml/advanced_preferences.xml >/dev/null 2>&1
aapt r 15210-v1.5-4248-patched.apk res/xml/graphics_preferences.xml
aapt a 15210-v1.5-4248-patched.apk res/xml/graphics_preferences.xml >/dev/null 2>&1
if [ $? -eq 0 ]; then
display_done
fi
# Updates the FAQ to show that we're using the latest version of NetherSX2
display_cyan "Updating the "
display_light_red "FAQ... "