Merge pull request #389 from icenine451/cooker-0.7.0b-icenine451

Cooker 0.7.0b icenine451
This commit is contained in:
icenine451 2023-05-12 14:31:19 -04:00 committed by GitHub
commit a74247bb9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 33 additions and 19 deletions

View file

@ -5,3 +5,8 @@ change^cheevos^cheevos_enable^true
change^cheevos^cheevos_token^$cheevos_token
change^cheevos^cheevos_username^$cheevos_username
change^cheevos_hardcore^cheevos_hardcore_mode_enable^true
change^borders^input_overlay^/var/config/retroarch/overlays/borders/pegasus/snes87.cfg
change^borders^input_overlay_aspect_adjust_landscape^0.305000
change^borders^input_overlay_scale_landscape^1.050000
change^borders^input_overlay_enable^true
change^widescreen^aspect_ratio_index^24

View file

@ -29,12 +29,12 @@ default_user=
developer_options=false
[cheevos]
PCSX2=false
Duckstation=false
SNES=false
PCSX2=false
RetroArch=false
[cheevos_hardcore]
SNES=false
RetroArch=false
[borders]
SNES=false

View file

@ -2569,8 +2569,10 @@ get_cheevos_token_dialog() {
--add-password="Password")
IFS='^' read -r cheevos_username cheevos_password < <(printf '%s\n' "$cheevos_info")
cheevos_token=$(curl --silent --data "r=login&u=$cheevos_username&p=$cheevos_password" $RA_API_URL | jq .Token | tr -d '"')
if [[ ! "$cheevos_token" == "null" ]]; then
local cheevos_response=$(curl --silent --data "r=login&u=$cheevos_username&p=$cheevos_password" $RA_API_URL)
local cheevos_success=$(echo $cheevos_response | jq .Success | tr -d '"')
local cheevos_token=$(echo $cheevos_response | jq .Token | tr -d '"')
if [[ "$cheevos_success" == "true" ]]; then
echo "$cheevos_username,$cheevos_token"
else
echo "failed"

View file

@ -67,13 +67,10 @@ dolphinqtconf="/var/config/dolphin-emu/Qt.ini"
# PCSX2 config files
pcsx2conf="/var/config/PCSX2/inis/GS.ini"
pcsx2uiconf="/var/config/PCSX2/inis/PCSX2_ui.ini"
pcsx2vmconf="/var/config/PCSX2/inis/PCSX2_vm.ini"
# PCSX2-QT config file
pcsx2qtconf="/var/config/PCSX2/inis/PCSX2.ini"
pcsx2conf="/var/config/PCSX2/inis/PCSX2.ini"
pcsx2gsconf="/var/config/PCSX2/inis/GS.ini" # This file should be deprecated since moving to PCSX2-QT
pcsx2uiconf="/var/config/PCSX2/inis/PCSX2_ui.ini" # This file should be deprecated since moving to PCSX2-QT
pcsx2vmconf="/var/config/PCSX2/inis/PCSX2_vm.ini" # This file should be deprecated since moving to PCSX2-QT
# Primehack config files

View file

@ -189,6 +189,7 @@ modules:
buildsystem: simple
build-commands:
- cp jq-linux64 ${FLATPAK_DEST}/bin/jq
- chmod +x ${FLATPAK_DEST}/bin/jq
sources:
- type: file
url: https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
@ -198,6 +199,7 @@ modules:
buildsystem: simple
build-commands:
- cp yq_linux_amd64 ${FLATPAK_DEST}/bin/yq
- chmod +x ${FLATPAK_DEST}/bin/yq
sources:
- type: file
url: https://github.com/mikefarah/yq/releases/download/v4.33.3/yq_linux_amd64

View file

@ -199,5 +199,10 @@ post_update() {
version=$hard_version
conf_write
changelog_dialog "$version"
if grep -qF "cooker" <<< $hard_version; then
changelog_dialog "$(echo $version | cut -d'-' -f2)"
else
changelog_dialog "$version"
fi
}

@ -1 +1 @@
Subproject commit 78786102fc04cf104ef9bf2f0ebcacbdda357ae0
Subproject commit 0b1cfb79e591e10488a3262d6b38db843c39a409

@ -1 +1 @@
Subproject commit 50314360ded6fa3b9f0b602513b1164b7a6636ed
Subproject commit a2441b964afefd8cd1cebcdf562c7878670daf42

View file

@ -48,6 +48,7 @@ https://retrodeck.net
cli_compress_all_games "$2"
;;
--configurator*)
launched_from_cli="true"
sh /app/tools/configurator.sh
exit
;;

View file

@ -138,7 +138,8 @@ configurator_welcome_dialog() {
;;
"" )
if [[ $(check_desktop_mode) == "true" ]]; then
if [[ $(check_desktop_mode) == "true" && "$launched_from_cli" == "true" ]]; then
launched_from_cli="false"
launch_rd_after_exit=$(configurator_generic_question_dialog "RetroDECK Configurator" "Would you like to launch RetroDECK after closing the Configurator?")
fi
exit 1
@ -198,9 +199,10 @@ configurator_global_presets_and_settings_dialog() {
;;
"RetroAchievements Login" )
cheevos_response=$(get_cheevos_token_dialog)
if [[ ! "$cheevos_response" == "failed" ]]; then
IFS=',' read -r cheevos_username cheevos_token < <(printf '%s\n' "$cheevos_response")
local cheevos_creds=$(get_cheevos_token_dialog)
if [[ ! "$cheevos_creds" == "failed" ]]; then
configurator_generic_dialog "RetroDECK Configurator Utility - RetroAchievements" "RetroAchievements login successful, please select systems you would like to enable achievements for in the next dialog."
IFS=',' read -r cheevos_username cheevos_token < <(printf '%s\n' "$cheevos_creds")
change_preset_dialog "cheevos"
else
configurator_generic_dialog "RetroDECK Configurator Utility - RetroAchievements" "RetroAchievements login failed, please verify your username and password and try the process again."