Skip to content

Commit

Permalink
Move chksum to netplay client script
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemiii91 committed Jun 30, 2023
1 parent 4939ef5 commit c9aebe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
5 changes: 0 additions & 5 deletions static/build/.tmp_update/script/game_list_options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,8 @@ create_cookie(){
rm -f "$cookiefile"
fi

core_checksum=$(cksum "$cookie_core_path" | cut -f 1 -d ' ')
rom_checksum=$(cksum "$cookie_rom_path" | cut -f 1 -d ' ')

echo "[core]: $cookie_core_path" >> $cookiefile
echo "[rom]: $cookie_rom_path" >> $cookiefile
echo "[corechksum]: $core_checksum" >> $cookiefile
echo "[romchksum]: $rom_checksum" >> $cookiefile
}

check_is_game() {
Expand Down
11 changes: 3 additions & 8 deletions static/build/App/romscripts/emu/Netplay - Join local host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,11 @@ read_cookie() {
rom="${line##"[rom]: "}"
export rom
;;
"[corechksum]: "*)
corechksum="${line##"[corechksum]: "}"
export corechksum
;;
"[romchksum]: "*)
romchksum="${line##"[romchksum]: "}"
export romchksum
;;
esac
done <"/mnt/SDCARD/RetroArch/retroarch.cookie.client"

export romchksum=$(cksum "$rom" | cut -f 1 -d ' ')
export corechksum=$(cksum "$core" | cut -f 1 -d ' ')

#url encode or curl complains
export rom_url=$(echo "$rom" | sed 's/ /%20/g')
Expand Down

0 comments on commit c9aebe3

Please sign in to comment.