From 98878bcbf1c08ea63810ad3f857471db119ee6b5 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 21 May 2017 11:53:49 +0200 Subject: [PATCH] Apparently --bps-linear doesn't like it if the last byte is unchanged, fix that --- libbps.cpp | 2 +- make.sh | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/libbps.cpp b/libbps.cpp index 83aeaab..75f8c3f 100644 --- a/libbps.cpp +++ b/libbps.cpp @@ -284,7 +284,7 @@ enum bpserror bps_create_linear(struct mem sourcemem, struct mem targetmem, stru { size_t numunchanged=0; while (source+numunchanged1) + if (numunchanged>1 || numunchanged == targetend-target) { //assert_shift((numunchanged-1), 2); writenum((numunchanged-1)<<2 | 0);//SourceRead diff --git a/make.sh b/make.sh index 241a667..d840560 100755 --- a/make.sh +++ b/make.sh @@ -38,16 +38,16 @@ profile/profile.sh ./flips echo 'GTK+ (3/3)' rm flips; CFLAGS=$FLAGS' -fprofile-use' make TARGET=gtk LFLAGS='' rm *.gcda -exit #mv flips ~/bin/flips # keeping this one for myself +mv flips ~/bin/flips # keeping this one for myself -echo Finishing -#compress source -7z a floating.zip flips.exe -zipcrush floating.zip -echo Size: $(stat -c%s flips.exe)/96768 -echo \(Linux: $(stat -c%s ~/bin/flips)\) -echo \(Zipped: $(stat -c%s floating.zip)/59881\) - -./special.sh - -rm src.zip boring.zip +#echo Finishing +##compress source +#7z a floating.zip flips.exe +#zipcrush floating.zip +#echo Size: $(stat -c%s flips.exe)/96768 +#echo \(Linux: $(stat -c%s ~/bin/flips)\) +#echo \(Zipped: $(stat -c%s floating.zip)/59881\) +# +#./special.sh +# +#rm src.zip boring.zip