Skip to content

Commit

Permalink
Bug fix: -T flag causes issues for some users.
Browse files Browse the repository at this point in the history
Also remove install.done when games are uninstalled so that deps would install correctly after they've been installed once and uninstalled
  • Loading branch information
ebenbruyns committed May 30, 2024
1 parent c5a1194 commit d7fedfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions defaults/scripts/Extensions/Epic/store.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function Epic_install(){
rm $PROGRESS_LOG &>> ${DECKY_PLUGIN_LOG_DIR}/${1}.log
RESULT=$($EPICCONF --addsteamclientid "${1}" "${2}" --dbfile $DBFILE)
TEMP=$($EPICCONF --update-umu-id "${1}" egs --dbfile $DBFILE)
# mkdir -p "${HOME}/.compat/${1}"
mkdir -p "${HOME}/Games/epic/"
ARGS=$($ARGS_SCRIPT "${1}")
TEMP=$($EPICCONF --launchoptions "${1}" "${ARGS}" "" --dbfile $DBFILE $OFFLINE_MODE)
echo $TEMP
Expand All @@ -192,11 +192,13 @@ function Epic_getlaunchoptions(){
}

function Epic_uninstall(){
WORKING_DIR=$($EPICCONF --get-game-dir "${1}")
updategamedetailsaftercmd $1 $LEGENDARY uninstall $1 -y $OFFLINE_MODE>> "${DECKY_PLUGIN_LOG_DIR}/${1}.log"

# this should be fixed before used, it might kill the entire machine
# WORKING_DIR=$($EPICCONF --get-working-dir "${1}")
# rm -rf "${WORKING_DIR}"

#echo "Working dir is ${WORKING_DIR}"
rm "${WORKING_DIR}/install.done"
TEMP=$($EPICCONF --clearsteamclientid "${1}" --dbfile $DBFILE)
echo $TEMP

Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/epic.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def execute_shell(self, cmd):
def get_list(self, offline):
offline_switch = "--offline" if offline else ""
games_list = self.execute_shell(os.path.expanduser(
f"{self.legendary_cmd} list -T --json {offline_switch}"))
f"{self.legendary_cmd} list --json {offline_switch}"))
id_list = []
game_dict = {}
for game in games_list:
Expand Down

0 comments on commit d7fedfa

Please sign in to comment.