Skip to content

Commit

Permalink
Add support for 1.0.1m, remove cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeSk committed Oct 28, 2024
1 parent e24bc01 commit a48f82c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
14 changes: 8 additions & 6 deletions apply_readabletro.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pushd %~dp0

setlocal
set file=Balatro.exe
set expectedsize=55575314

call :setsize %file%

Expand All @@ -14,11 +13,14 @@ IF NOT EXIST %file% (
goto :eof
)

if %size% neq %expectedsize% (
echo %file% has an unexpected size - only an unmodified version 1.0.1g-FULL is supported.
pause
goto :eof
)
if %size% EQU 55575314 goto :sizeok
if %size% EQU 55738838 goto :sizeok

echo %file% has an unexpected size - only an unmodified version 1.0.1g-FULL or 1.0.1m-FULL is supported.
pause
goto :eof

:sizeok

readabletro\helpers\dd if=%file% of=b.exe bs=394752 count=1
readabletro\helpers\dd if=%file% of=b.zip bs=394752 skip=1
Expand Down
5 changes: 2 additions & 3 deletions apply_readabletro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ if [ ! -f $FILE ]; then
exit 1
fi

EXPECTED_SIZE=55575314
ACTUAL_SIZE="$(du -b $FILE | cut -f1)"

if [ $ACTUAL_SIZE != $EXPECTED_SIZE ]; then
echo "$FILE has an unexpected size - only an unmodified version 1.0.1g-FULL is supported."
if [ $ACTUAL_SIZE != '55575314' ] && [ $ACTUAL_SIZE != '55738838' ]; then
echo "$FILE has an unexpected size - only an unmodified version 1.0.1g-FULL or 1.0.1m-FULL is supported."
exit 1
fi

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit a48f82c

Please sign in to comment.