-
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-gallery-not-finding-screenshots
- Loading branch information
Showing
74 changed files
with
144 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/sh | ||
export sysdir="/mnt/SDCARD/.tmp_update" | ||
export miyoodir="/mnt/SDCARD/miyoo" | ||
export LD_LIBRARY_PATH="/lib:/config/lib:$miyoodir/lib:$sysdir/lib:$sysdir/lib/parasyte:/sbin:/usr/sbin:/bin:/usr/bin" | ||
export PATH="$sysdir/bin:$PATH" | ||
|
||
# to push the default display values into mi_disp when a soft reset of mi_disp is done (if /dev/l doesn't exist for some reason) | ||
# this script is called by `disp_init` but can be called standalone | ||
# it will read system.json, process the values to what mi_disp expects and push them in | ||
|
||
# mi_disp doesn't accept the values raw from system.json, they're manipulated before handing off to mi_disp | ||
LUMINATION_FACTOR=17 | ||
SATURATION_FACTOR=5 | ||
CONTRAST_OFFSET=40 | ||
|
||
# grab the values from system.json | ||
filename="/appconfigs/system.json" | ||
|
||
readout=$(jq -r '.lumination, .hue, .saturation, .contrast' "$filename") | ||
|
||
while IFS= read -r line; do | ||
[ -z "$lumination" ] && lumination="$line" && continue | ||
[ -z "$hue" ] && hue="$line" && continue | ||
[ -z "$saturation" ] && saturation="$line" && continue | ||
[ -z "$contrast" ] && contrast="$line" && continue | ||
done <<EOF | ||
$readout | ||
EOF | ||
|
||
# check if they're within bounds, if not force defaults of 7/10/10/10 like miyoo do. | ||
if ! echo "$lumination" | grep -qE '^[0-9]+$' || [ "$lumination" -lt 0 ] || [ "$lumination" -gt 20 ]; then lumination=7; fi | ||
if ! echo "$hue" | grep -qE '^[0-9]+$' || [ "$hue" -lt 0 ] || [ "$hue" -gt 20 ]; then hue=10; fi | ||
if ! echo "$saturation" | grep -qE '^[0-9]+$' || [ "$saturation" -lt 0 ] || [ "$saturation" -gt 20 ]; then saturation=10; fi | ||
if ! echo "$contrast" | grep -qE '^[0-9]+$' || [ "$contrast" -lt 0 ] || [ "$contrast" -gt 20 ]; then contrast=10; fi | ||
|
||
# process ready for mi_disp to accept | ||
lumaProcessed=$((lumination + LUMINATION_FACTOR * 2)) | ||
satProcessed=$((saturation * SATURATION_FACTOR)) | ||
contProcessed=$((contrast + CONTRAST_OFFSET)) | ||
hueProcessed=$((hue * SATURATION_FACTOR)) | ||
|
||
devid=0 # the mi_disp ID | ||
cscMatrix=3 # dont change this, it's the type of csc (E_MI_DISP_CSC_MATRIX_RGB_TO_BT709_PC) | ||
sharpness=0 # set by default to 0 | ||
gain=0 # no effect but required by the below | ||
|
||
# check if /proc/mi_modules/mi_disp/mi_disp0 exists before trying to push in values, | ||
# if it doesn't, fully respawn /dev/l (causes screen to reinitialise fully, which causes visual artifacts like at startup) | ||
sync | ||
|
||
if [ -e "/proc/mi_modules/mi_disp/mi_disp0" ]; then | ||
echo "csc $devid $cscMatrix $contProcessed $hueProcessed $lumaProcessed $satProcessed $sharpness $gain" > /proc/mi_modules/mi_disp/mi_disp0 | ||
else | ||
echo "mi_disp0 does not exist. Cannot push values." | ||
cat /proc/ls | ||
/dev/l & | ||
fi | ||
|
||
# echo "SetCsc command executed with the following parameters:" | ||
# echo "Contrast: $contProcessed" | ||
# echo "Hue: $hueProcessed" | ||
# echo "Luma: $lumaProcessed" | ||
# echo "Saturation: $satProcessed" | ||
# echo "Sharpness: $sharpness" | ||
# echo "Gain: $gain" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
migrate_drastic() { | ||
if [ -z "$1" ]; then | ||
echo "Error: Empty argument provided." >&2 | ||
exit 1 | ||
fi | ||
local old_drastic_folder="/mnt/SDCARD/Emu/$1" | ||
local backup_zip_file="/mnt/SDCARD/Emu/$1_old.7z" | ||
local old_save_folder="/mnt/SDCARD/Emu/$1/backup" | ||
local old_savestate_folder="/mnt/SDCARD/Emu/$1/savestates" | ||
local new_save_folder="/mnt/SDCARD/Saves/CurrentProfile/states/Drastic" | ||
local drastic_package_location="/mnt/SDCARD/App/PackageManager/data/Emu/Nintendo - DS (Drastic)" | ||
local game_list_cache="/mnt/SDCARD/Roms/NDS/NDS_cache6.db" | ||
|
||
if [ -d "$old_drastic_folder" ]; then | ||
echo "Migrating Drastic from $1 folder..." >>/tmp/.update_msg | ||
|
||
mkdir -p "$new_save_folder" | ||
cp "$old_save_folder"/*.* "$new_save_folder"/ | ||
cp "$old_savestate_folder"/*.* "$new_save_folder"/ | ||
|
||
7z a -r -mx0 "$backup_zip_file" "$old_drastic_folder"/ | ||
rm -rf "$old_drastic_folder"/ | ||
|
||
cp -r "$drastic_package_location"/* "/mnt/SDCARD/" | ||
rm "$game_list_cache" | ||
fi | ||
} | ||
|
||
# Migrate Drastic from Emu/drastic | ||
migrate_drastic "drastic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Empty file.
10 changes: 0 additions & 10 deletions
10
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/launch.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-6.89 KB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/libs/libGLESv1_CM.so
Binary file not shown.
Binary file removed
BIN
-6.89 KB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/libs/libGLESv2.so
Binary file not shown.
Binary file removed
BIN
-77.6 KB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/libs/libgbm.so.1
Binary file not shown.
Binary file removed
BIN
-304 KB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/libs/libglapi.so.0
Binary file not shown.
Binary file removed
BIN
-1.06 MB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/libs/libgomp.so.1
Binary file not shown.
Binary file removed
BIN
-1.06 MB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/libs/libgomp.so.1.0.0
Binary file not shown.
Binary file modified
BIN
+69.9 KB
(150%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_h0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+51 KB
(150%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_h1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.3 KB
(130%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_hh0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+43.3 KB
(160%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_hres0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+36.5 KB
(150%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_s0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+81 KB
(160%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_v0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+58.9 KB
(160%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_v1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+58.4 KB
(160%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_vh_c0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+52.5 KB
(160%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_vh_c1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+46.5 KB
(160%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_vh_s0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+60.7 KB
(160%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_640/8/bg_vh_s1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-39.2 KB
(71%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_h0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10.3 KB
(85%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_h1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16.5 KB
(56%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_hh0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-24.9 KB
(65%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_hres0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-26.9 KB
(67%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_s0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-26.7 KB
(68%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_v0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-28.5 KB
(64%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_v1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-23.3 KB
(64%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_vh_c0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-30.8 KB
(71%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_vh_c1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-25 KB
(68%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_vh_s0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-42.3 KB
(71%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/1/bg_vh_s1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-42.6 KB
(81%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_h0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-27 KB
(80%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_h1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10.7 KB
(68%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_hh0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-26.3 KB
(83%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_hres0.png
Oops, something went wrong.
Binary file modified
BIN
-36.4 KB
(82%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_s0.png
Oops, something went wrong.
Binary file modified
BIN
-38.4 KB
(82%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_v0.png
Oops, something went wrong.
Binary file modified
BIN
-29.4 KB
(82%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_v1.png
Oops, something went wrong.
Binary file modified
BIN
-30 KB
(81%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_vh_c0.png
Oops, something went wrong.
Binary file modified
BIN
-25.8 KB
(80%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_vh_c1.png
Oops, something went wrong.
Binary file modified
BIN
-28.8 KB
(80%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_vh_s0.png
Oops, something went wrong.
Binary file modified
BIN
-36.5 KB
(81%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/2/bg_vh_s1.png
Oops, something went wrong.
Binary file modified
BIN
+222 KB
(870%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_h0.png
Oops, something went wrong.
Binary file modified
BIN
+154 KB
(660%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_h1.png
Oops, something went wrong.
Binary file modified
BIN
+23 KB
(300%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_hh0.png
Oops, something went wrong.
Binary file modified
BIN
+97.6 KB
(330%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_hres0.png
Oops, something went wrong.
Binary file modified
BIN
+109 KB
(580%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_s0.png
Oops, something went wrong.
Binary file modified
BIN
+251 KB
(1400%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_v0.png
Oops, something went wrong.
Binary file modified
BIN
+184 KB
(1000%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_v1.png
Oops, something went wrong.
Binary file modified
BIN
+175 KB
(950%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_vh_c0.png
Oops, something went wrong.
Binary file modified
BIN
+150 KB
(670%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_vh_c1.png
Oops, something went wrong.
Binary file modified
BIN
+134 KB
(630%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_vh_s0.png
Oops, something went wrong.
Binary file modified
BIN
+169 KB
(700%)
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_752/3/bg_vh_s1.png
Oops, something went wrong.
Binary file removed
BIN
-152 KB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/bg_800/1/bg.png
Diff not rendered.
Binary file modified
BIN
-17.5 MB
(1.4%)
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/font/font.ttf
Binary file not shown.
Binary file removed
BIN
-146 KB
static/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/240/1/bg.png
Diff not rendered.
Binary file removed
BIN
-1.9 KB
...ic/packages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/240/1/cursor.png
Diff not rendered.
Binary file removed
BIN
-36.9 KB
...ckages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/240/1/drastic_bg0.png
Diff not rendered.
Binary file removed
BIN
-26.2 KB
...ckages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/240/1/drastic_bg1.png
Diff not rendered.
Binary file removed
BIN
-1.9 KB
...ges/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/240/1/drastic_cursor.png
Diff not rendered.
Binary file removed
BIN
-3.24 KB
...ackages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/240/1/drastic_no.png
Diff not rendered.
Binary file removed
BIN
-2.9 KB
...ckages/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/240/1/drastic_yes.png
Diff not rendered.
Binary file removed
BIN
-1.9 KB
...ges/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/640/1/drastic_cursor.png
Diff not rendered.
Binary file removed
BIN
-1014 Bytes
...ges/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/640/2/drastic_cursor.png
Diff not rendered.
Binary file removed
BIN
-1.31 KB
...ges/Emu/Nintendo - DS (Drastic)/Emu/NDS/resources/menu/640/3/drastic_cursor.png
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-20.7 MB
static/packages/RApp/PICO-8 (PICO-8 standalone)/RApp/PICO-8/lib/libGLESv2.so
Binary file not shown.