diff --git a/android/build.gradle b/android/build.gradle index b4dde3e6c0..8129b66988 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -123,6 +123,9 @@ android { vr { manifest.srcFile 'VRManifest.xml' } + legacy { + res.srcDirs = ['legacy/res'] + } } productFlavors { normal { diff --git a/android/legacy/conv_color.sh b/android/legacy/conv_color.sh new file mode 100644 index 0000000000..ce58dc458b --- /dev/null +++ b/android/legacy/conv_color.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Wirtten by ChatGPT + +# Define the base directory to start the search +BASE_DIR="$1" + +# Check if the base directory is provided and exists +if [ -z "$BASE_DIR" ]; then + echo "Usage: $0 /path/to/directory" + exit 1 +fi + +if [ ! -d "$BASE_DIR" ]; then + echo "Directory $BASE_DIR does not exist." + exit 1 +fi + +# Function to process images +process_image() { + local image_path="$1" + + # Define output path (can be modified to save to a different location) + local output_path="$1" # ${image_path%.*}_tinted.${image_path##*.}" + + # Apply the tint and darkening + convert "$image_path" \ + -modulate 80,50,55 \ + "$output_path" + + echo "Processed $image_path -> $output_path" +} + +export -f process_image + +# Find and process image files +find "$BASE_DIR" -type f \( -iname '*.png' \) -exec bash -c 'process_image "$0"' {} \; + +echo "Image processing completed." diff --git a/android/legacy/icon_color.md b/android/legacy/icon_color.md new file mode 100644 index 0000000000..436de9a89e --- /dev/null +++ b/android/legacy/icon_color.md @@ -0,0 +1,3 @@ +# How to create legacy icons from regular icons + +convert ic_launcher.png -modulate 80,50,55 ic_launcher.png diff --git a/android/legacy/res/drawable-hdpi/ic_launcher.png b/android/legacy/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000000..7a36832d0f Binary files /dev/null and b/android/legacy/res/drawable-hdpi/ic_launcher.png differ diff --git a/android/legacy/res/drawable-mdpi/ic_launcher.png b/android/legacy/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000000..ed83506c1b Binary files /dev/null and b/android/legacy/res/drawable-mdpi/ic_launcher.png differ diff --git a/android/legacy/res/drawable-xhdpi/ic_launcher.png b/android/legacy/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000000..4b7484924c Binary files /dev/null and b/android/legacy/res/drawable-xhdpi/ic_launcher.png differ diff --git a/android/legacy/res/drawable-xhdpi/tv_banner.png b/android/legacy/res/drawable-xhdpi/tv_banner.png new file mode 100644 index 0000000000..2a8093f438 Binary files /dev/null and b/android/legacy/res/drawable-xhdpi/tv_banner.png differ diff --git a/android/legacy/res/drawable-xxhdpi/ic_launcher.png b/android/legacy/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000..895bba7f68 Binary files /dev/null and b/android/legacy/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/android/legacy/res/mipmap-anydpi-v26/ic_launcher.xml b/android/legacy/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000000..036d09bc5f --- /dev/null +++ b/android/legacy/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/legacy/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/legacy/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000000..036d09bc5f --- /dev/null +++ b/android/legacy/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/legacy/res/mipmap-hdpi/ic_launcher.png b/android/legacy/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000..99313828b3 Binary files /dev/null and b/android/legacy/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/legacy/res/mipmap-hdpi/ic_launcher_foreground.png b/android/legacy/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000..514ef73f78 Binary files /dev/null and b/android/legacy/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/android/legacy/res/mipmap-hdpi/ic_launcher_round.png b/android/legacy/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000000..99313828b3 Binary files /dev/null and b/android/legacy/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/android/legacy/res/mipmap-mdpi/ic_launcher.png b/android/legacy/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000..0f426364dc Binary files /dev/null and b/android/legacy/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/legacy/res/mipmap-mdpi/ic_launcher_foreground.png b/android/legacy/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000..23bd8ab817 Binary files /dev/null and b/android/legacy/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/android/legacy/res/mipmap-mdpi/ic_launcher_round.png b/android/legacy/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000000..fe5d77dd22 Binary files /dev/null and b/android/legacy/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/android/legacy/res/mipmap-xhdpi/ic_launcher.png b/android/legacy/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000..a1aef39a73 Binary files /dev/null and b/android/legacy/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/legacy/res/mipmap-xhdpi/ic_launcher_foreground.png b/android/legacy/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000..c608cb1658 Binary files /dev/null and b/android/legacy/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/android/legacy/res/mipmap-xhdpi/ic_launcher_round.png b/android/legacy/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000000..a1aef39a73 Binary files /dev/null and b/android/legacy/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/android/legacy/res/mipmap-xxhdpi/ic_launcher.png b/android/legacy/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000..57ff24d6c9 Binary files /dev/null and b/android/legacy/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/legacy/res/mipmap-xxhdpi/ic_launcher_foreground.png b/android/legacy/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000..ed7bf5c088 Binary files /dev/null and b/android/legacy/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/android/legacy/res/mipmap-xxhdpi/ic_launcher_round.png b/android/legacy/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000000..57ff24d6c9 Binary files /dev/null and b/android/legacy/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/android/legacy/res/values/ic_launcher_background.xml b/android/legacy/res/values/ic_launcher_background.xml new file mode 100644 index 0000000000..8458956d4e --- /dev/null +++ b/android/legacy/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #404040 + diff --git a/android/legacy/res/values/strings.xml b/android/legacy/res/values/strings.xml new file mode 100644 index 0000000000..c3157e242c --- /dev/null +++ b/android/legacy/res/values/strings.xml @@ -0,0 +1,4 @@ + + + PPSSPP Legacy + diff --git a/android/res/drawable-xhdpi/ouya_icon.png b/android/res/drawable-xhdpi/ouya_icon.png deleted file mode 100644 index 8daf84f84b..0000000000 Binary files a/android/res/drawable-xhdpi/ouya_icon.png and /dev/null differ