Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Dec 23, 2024
1 parent 24c5ed1 commit 6f8ea41
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions functions/generateGameLists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ generateGameLists_pythonEnv() {

generateGameLists() {

generateGameLists_pythonEnv
generateGameLists_pythonEnv &> /dev/null

local accountfolder=$(ls -td $HOME/.steam/steam/userdata/* | head -n 1)
local dest_folder="$accountfolder/config/grid/retrolibrary/artwork/"
Expand Down Expand Up @@ -42,6 +42,7 @@ generateGameLists() {
}

generateGameListsJson() {
generateGameLists_pythonEnv &> /dev/null
echo "Adding Games" > "$MSG"
#python $HOME/.config/EmuDeck/backend/tools/retro-library/generate_game_lists.py "$romsPath"
echo "Games Added" > "$MSG"
Expand All @@ -51,10 +52,12 @@ generateGameListsJson() {
}

generateGameLists_importESDE() {
generateGameLists_pythonEnv &> /dev/null
python $HOME/.config/EmuDeck/backend/tools/retro-library/import_media.py "$romsPath" "$dest_folder"
}

generateGameLists_artwork() {
generateGameLists_pythonEnv &> /dev/null
echo "Searching for missing artwork" > "$MSG"
python $HOME/.config/EmuDeck/backend/tools/retro-library/missing_artwork_platforms.py "$romsPath" "$storagePath/retrolibrary/artwork" && python $HOME/.config/EmuDeck/backend/tools/retro-library/download_art_platforms.py "$storagePath/retrolibrary/artwork"

Expand All @@ -63,6 +66,7 @@ generateGameLists_artwork() {
}

saveImage(){
generateGameLists_pythonEnv &> /dev/null
local url=$1
local name=$2
local system=$3
Expand All @@ -73,6 +77,7 @@ saveImage(){
}

function addGameListsArtwork() {
generateGameLists_pythonEnv &> /dev/null
local file="$1"
local appID="$2"
local platform="$3"
Expand All @@ -98,7 +103,7 @@ function addGameListsArtwork() {
}

generateGameLists_getPercentage() {

generateGameLists_pythonEnv &> /dev/null
local accountfolder=$(ls -td $HOME/.steam/steam/userdata/* | head -n 1)
local dest_folder="$storagePath/retrolibrary/artwork/"

Expand All @@ -123,6 +128,7 @@ generateGameLists_getPercentage() {
}

generateGameLists_extraArtwork() {
generateGameLists_pythonEnv &> /dev/null
local game=$1
local platform=$2
local hash=$3
Expand All @@ -144,13 +150,15 @@ generateGameLists_extraArtwork() {
}

generateGameLists_retroAchievements(){
generateGameLists_pythonEnv &> /dev/null
local hash=$1
local system=$2
local localDataPath="$storagePath/retrolibrary/achievements/$system.json"
python $HOME/.config/EmuDeck/backend/tools/retro-library/retro_achievements.py "$cheevos_username" "$hash" "$localDataPath"
}

generateGameLists_downloadAchievements(){
generateGameLists_pythonEnv &> /dev/null
local folder="$storagePath/retrolibrary/achievements"
if [ ! -d $folder ]; then
echo "Downloading Retroachievements Data" > "$MSG"
Expand All @@ -162,6 +170,7 @@ generateGameLists_downloadAchievements(){
}

generateGameLists_downloadData(){
generateGameLists_pythonEnv &> /dev/null
local folder="$storagePath/retrolibrary/data"
local accountfolder=$(ls -td $HOME/.steam/steam/userdata/* | head -n 1)
ln -s "$folder" "$accountfolder/config/grid/retrolibrary/data"
Expand Down

0 comments on commit 6f8ea41

Please sign in to comment.