Ignore:
Timestamp:
Apr 26, 2008, 10:41:43 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Step 2 of the code reorganisation: move each font to its corresponding decoder's subdirectory.
Location:
pwntcha/trunk/src/tickets
Files:
2 edited
8 moved

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/tickets/Makefile.am

    r2317 r2318  
     1
     2DECODER = tickets
    13
    24noinst_LIBRARIES = libdecoder.a
    35
    46libdecoder_a_SOURCES = decoder.c
    5 libdecoder_a_CPPFLAGS = -I$(srcdir)/..
     7libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\"
    68
     9EXTRA_DIST = font1.png font2.png font3.png font4.png font5.png font6.png font7.png font8.png
     10
  • pwntcha/trunk/src/tickets/decoder.c

    r2317 r2318  
    3535        {
    3636            char buf[BUFSIZ];
    37             sprintf(buf, "font_tickets%i.png", i + 1);
    38             fonts[i] = font_load_variable(buf, "0123456789");
     37            sprintf(buf, "font%i.png", i + 1);
     38            fonts[i] = font_load_variable(DECODER, buf, "0123456789");
    3939            if(!fonts[i])
    4040                exit(-1);
Note: See TracChangeset for help on using the changeset viewer.