Some updates

This commit is contained in:
Trixarian 2023-10-18 12:00:56 +02:00
parent a97a42ef6a
commit 60988087ae
73 changed files with 51 additions and 30 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

View File

@ -1,4 +1,6 @@
@echo off
:: Sets the window's title
Title NetherSX2 Patcher
:: Allows for Terminal Colors to be used
set col=lib\cmdcolor.exe
set md5hash=c98b0e4152d3b02fbfb9f62581abada5
@ -8,6 +10,10 @@ echo \033[91m======================== | %col%
echo \033[91m NetherSX2 Patcher v1.7 | %col%
echo \033[91m======================== | %col%
:: Makes sure Java is installed and in the PATH
java >nul 2>&1
if %errorlevel%==9009 goto nojava
:: Check if the NetherSX2 APK exists and if it's named correctly
if not exist 15210-v1.5-4248-noads.apk goto nofile
:: Check if the NetherSX2 APK isn't just a renamed AetherSX2 4248 APK
@ -17,67 +23,67 @@ for /f %%f in ('""lib\md5sum.exe" "15210-v1.5-4248-noads.apk""') do (
:: Ad Services Cleanup
<nul set /p "=\033[96mRemoving the \033[91mAd Services leftovers... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk user-messaging-platform.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-tasks.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-measurement-sdk-api.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-measurement-base.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-basement.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-base.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-appset.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads-lite.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads-identifier.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads-base.properties > nul
lib\aapt r 15210-v1.5-4248-noads.apk user-messaging-platform.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-tasks.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-measurement-sdk-api.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-measurement-base.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-basement.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-base.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-appset.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads-lite.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads-identifier.properties >nul
lib\aapt r 15210-v1.5-4248-noads.apk play-services-ads-base.properties >nul
echo \033[92m[Done] | %col%
:: Adds Additional Options to App Settings
<nul set /p "=\033[96mAdding more options to \033[91mApp Settings... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk res/xml/advanced_preferences.xml
lib\aapt a 15210-v1.5-4248-noads.apk res/xml/advanced_preferences.xml > nul
lib\aapt a 15210-v1.5-4248-noads.apk res/xml/advanced_preferences.xml >nul
lib\aapt r 15210-v1.5-4248-noads.apk res/xml/graphics_preferences.xml
lib\aapt a 15210-v1.5-4248-noads.apk res/xml/graphics_preferences.xml > nul
lib\aapt a 15210-v1.5-4248-noads.apk res/xml/graphics_preferences.xml >nul
echo \033[92m[Done] | %col%
:: Updates the FAQ to show that we're using the latest version of NetherSX2
<nul set /p "=\033[96mUpdating the \033[91mFAQ... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/faq.html
lib\aapt a 15210-v1.5-4248-noads.apk assets/faq.html > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/faq.html >nul
echo \033[92m[Done] | %col%
:: 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%
lib\aapt r 15210-v1.5-4248-noads.apk assets/GameIndex.yaml
lib\aapt a 15210-v1.5-4248-noads.apk assets/GameIndex.yaml > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/GameIndex.yaml >nul
echo \033[92m[Done] | %col%
:: Updates the Game Controller Database
<nul set /p "=\033[96mUpdating the \033[91mController Database... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/game_controller_db.txt
lib\aapt a 15210-v1.5-4248-noads.apk assets/game_controller_db.txt > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/game_controller_db.txt >nul
echo \033[92m[Done] | %col%
:: Updates the Widescreen Patches
<nul set /p "=\033[96mUpdating the \033[91mWidescreen Patches... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/cheats_ws.zip
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ws.zip > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ws.zip >nul
echo \033[92m[Done] | %col%
:: Updates the No-Interlacing Patches
<nul set /p "=\033[96mUpdating the \033[91mNo-Interlacing Patches... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/cheats_ni.zip
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ni.zip > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ni.zip >nul
echo \033[92m[Done] | %col%
:: Fixes License Compliancy Issue
<nul set /p "=\033[96mFixing the \033[91mLicense Compliancy Issue... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/3rdparty.html
lib\aapt a 15210-v1.5-4248-noads.apk assets/3rdparty.html > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/3rdparty.html >nul
echo \033[92m[Done] | %col%
:: Adds the placeholder file that makes RetroAchievements Notifications work
<nul set /p "=\033[96mFixing the \033[91mRetroAchievements Notifications... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/placeholder.png > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/placeholder.png > nul
lib\aapt r 15210-v1.5-4248-noads.apk assets/placeholder.png >nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/placeholder.png >nul
echo \033[92m[Done] | %col%
:: Resigns the APK before exiting
@ -89,8 +95,13 @@ echo \033[92m[Done] | %col%
goto end
:nofile
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%
echo \033[91mError: No APK found or wrong one provided! | %col%
echo \033[91mPlease provide a copy of NetherSX2 named 15210-v1.5-4248-noads.apk! | %col%
goto end
:nojava
echo \033[91mError: The Java Development Kit is not installed or a restart required! | %col%
echo \033[91mPlease download and install the JDK from https://www.oracle.com/java/technologies/downloads/#jdk21-windows | %col%
goto end
:end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -16,7 +16,7 @@ for /f %%f in ('""lib\md5sum.exe" "15210-v1.5-4248-noads.apk""') do (
)
:: Adds UI Theme to APK
<nul set /p "=\033[96mApplying the \033[91mCustom UI Theme... " | %col%
<nul set /p "=\033[96mApplying the \033[91mCustom UI Theme..." | %col%
for /r %%i in (res\drawable\*.png) do (
lib\aapt r 15210-v1.5-4248-noads.apk res/drawable/%%~nxi > nul
lib\aapt a 15210-v1.5-4248-noads.apk res/drawable/%%~nxi > nul

View File

@ -1,4 +1,5 @@
@echo off
Title NetherSX2 Updater
:: Allows for Terminal Colors to be used
set col=lib\cmdcolor.exe
set md5hash=c98b0e4152d3b02fbfb9f62581abada5
@ -8,6 +9,10 @@ echo \033[91m======================== | %col%
echo \033[91m NetherSX2 Updater v1.7 | %col%
echo \033[91m======================== | %col%
:: Makes sure Java is installed and in the PATH
java >nul 2>&1
if %errorlevel%==9009 goto nojava
:: Check if the NetherSX2 APK exists and if it's named correctly
if not exist 15210-v1.5-4248-noads.apk goto nofile
:: Check if the NetherSX2 APK isn't just a renamed AetherSX2 4248 APK
@ -18,25 +23,25 @@ for /f %%f in ('""lib\md5sum.exe" "15210-v1.5-4248-noads.apk""') do (
:: 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%
lib\aapt r 15210-v1.5-4248-noads.apk assets/GameIndex.yaml
lib\aapt a 15210-v1.5-4248-noads.apk assets/GameIndex.yaml > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/GameIndex.yaml >nul
echo \033[92m[Done] | %col%
:: Updates the Controller Database
<nul set /p "=\033[96mUpdating the \033[91mController Database... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/game_controller_db.txt
lib\aapt a 15210-v1.5-4248-noads.apk assets/game_controller_db.txt > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/game_controller_db.txt >nul
echo \033[92m[Done] | %col%
:: Updates the Widescreen Patches
<nul set /p "=\033[96mUpdating the \033[91mWidescreen Patches... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/cheats_ws.zip
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ws.zip > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ws.zip >nul
echo \033[92m[Done] | %col%
:: Updates the No-Interlacing Patches
<nul set /p "=\033[96mUpdating the \033[91mNo-Interlacing Patches... " | %col%
lib\aapt r 15210-v1.5-4248-noads.apk assets/cheats_ni.zip
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ni.zip > nul
lib\aapt a 15210-v1.5-4248-noads.apk assets/cheats_ni.zip >nul
echo \033[92m[Done] | %col%
:: Resigns the APK before exiting
@ -48,8 +53,13 @@ echo \033[92m[Done] | %col%
goto end
:nofile
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%
echo \033[91mError: No APK found or wrong one provided! | %col%
echo \033[91mPlease provide a copy of NetherSX2 named 15210-v1.5-4248-noads.apk! | %col%
goto end
:nojava
echo \033[91mError: The Java Development Kit is not installed or a restart required! | %col%
echo \033[91mPlease download and install the JDK from https://www.oracle.com/java/technologies/downloads/#jdk21-windows | %col%
goto end
:end