Skip to content

Commit

Permalink
Faster EmuCleaner
Browse files Browse the repository at this point in the history
25% less time
  • Loading branch information
cizia64 committed Jun 10, 2024
1 parent f7ad353 commit ad33150
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Apps/EmuCleaner/launch.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
PATH="/mnt/SDCARD/System/bin:$PATH"

echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1416000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

silent=false
for arg in "$@"; do
if [ "$arg" = "-s" ]; then
Expand Down Expand Up @@ -51,7 +54,7 @@ for subfolder in $EmuFolder/*/; do

# Build the find command with extensions from extlist
if [ -z "$ExtList" ] || [ "$ExtList" = "null" ]; then
find_cmd="find \"$RomsFolder/$RomFolderName\" '!' -name '*.db' '!' -name '.gitkeep' '!' -name '*.launch' -mindepth 1 -maxdepth 1"
find_cmd="find \"$RomsFolder/$RomFolderName\" '!' -name '*.db' '!' -name '.gitkeep' '!' -name '*.launch' -mindepth 1 -maxdepth 2"
else
set -- $(echo $ExtList | tr '|' ' ')
find_cmd="find \"$RomsFolder/$RomFolderName\""
Expand Down

0 comments on commit ad33150

Please sign in to comment.