From b26d05db068fa3b77bfd2420200153b2593eb8ec Mon Sep 17 00:00:00 2001 From: b Date: Mon, 23 Dec 2013 21:52:18 +0000 Subject: [PATCH] The file, that makes. facepalm #2 git-svn-id: svn://botcastle1b/npb@7 0d794883-4e4e-4f65-aa7a-0e7f5947bab5 --- makefile | 8 ++++++++ npb | Bin 6770 -> 7845 bytes npb.cpp | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..08ab0f3 --- /dev/null +++ b/makefile @@ -0,0 +1,8 @@ +CC=g++ +CF=-g -Wall +LF=-lIL + +all: npb + +npb: npb.cpp makefile + $(CC) $(CF) $(LF) -o npb npb.cpp diff --git a/npb b/npb index 3b2ee72963517b5044afa2d6a675086792b85b2a..ddcb69fa0b54e9590ca34f0d0088965e1d5aa7e7 100755 GIT binary patch literal 7845 zcmb7J3yf6N89w*U-QB@mcNb7f1h$~0y=S;Ppl$!j zne%_=|IdFO_niN{9&Bx2s%e@~qzj*r=uyMJ0Ew^GI+6tR%eLoH+sl(P(m<-p5PHbV18_EZM-8N#p({V$7_G7E(_m|&( z^pUBzjD_q<1nSlxko*YDN4gw=eN=%k4uQlxETftL#4^z}mn7DW#BafRcnRGh$^G0# zQKidOA!Z(yquRAw1hl~EhA~WIKH7ch)DzpATmO9a;L1~jZ{D|Y@~`%NRQ=xTA6ECa zZFv#mQ55zdwufaX3V@lU0Ak`L9!&kKRfE72@AJq5;BWU}%75m;0q{*8OnIsVuPnh6 zOUgS}B5#8HPtRgZgKEV`g?iu<9y|tkFUA|c?^tLoDv{SCz3LGs|2XurYvnQW7(^e*%N`~SwyVu-0hs{bjM#1%j!)DfPzT5D47c1R)=OA6D9gzOLmUD>RYj-+HnENgBy z=LhGA=8YR0o7&8|!TDlYds|bpIS+{!h@<`j>6oRO=f}B0{0?Hyg#bdw^j=IKLoCC0 zCQ<$XVkLk57h5o$ePWGAUU22quZ_hp<#lnVE8mN;RE}!=0C5G<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1p5+x+WNYMRe-Qaux+&>NzUOkZHc=*Z= zC=j`o+@v485m>&KK2fepcNDN8L2ivYJY_9tGiWd9lNNb8eV&uaRwiVDXRI~-u~p9U z>`6_pdZNxw82r#GeHoXud9puahLL%d47?qYotcGc^h6)f5h2fJ7P#r4HoW`}d!ID?9yedmi05R< zVSa~%VB{2Lov4ykn1xlVYE}tU1u}#RXOmfK`oFyNrr0nT1V zO#1`i%uiws4Fug-Zpa-I&r142!#DaYbVKj-8!$6dt;rSrn552N6Vh0+$vug)fKv@c zLvzXpPCY$@W*7xNhdZ(D`EjQT4Z%(Ymx8BYkQyOOUKoa#0yEg`qx=i83^fHUq%1!ToNVIqcxc!3#zg3|lY}xILK$G^iT3AO<`ona+NjSHyu;gH{)4 c0gkjBKbtpMlb-xpa#8*h@^JnNSz55}e?6NOV*mgE diff --git a/npb.cpp b/npb.cpp index 66d78f3..0d4d3a5 100644 --- a/npb.cpp +++ b/npb.cpp @@ -31,7 +31,7 @@ int main (int argc, const char *argv[]) ilEnable(IL_ORIGIN_SET); ilGenImages(1, &inPix); ilBindImage(inPix); - if(ilLoadImage(argv[1])) + if(!ilLoadImage(argv[1])) { ilDeleteImages(1, &inPix); if(q) printf("Input file mustard\n"); -- 2.30.2