| version 1.3 | | version 1.4 |
|---|
| | |
| * Functions for managing the pig files. | | * Functions for managing the pig files. |
| * | | * |
| * $Log$ | | * $Log$ |
| | | * Revision 1.4 1999/11/20 10:05:18 donut |
| | | * variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). |
| | | * |
| * Revision 1.3 1999/11/15 10:44:42 sekmu | | * Revision 1.3 1999/11/15 10:44:42 sekmu |
| * added calls to altsound.c for loading new sounds | | * added calls to altsound.c for loading new sounds |
| * | | * |
| | |
| DiskBitmapHeader bmh; | | DiskBitmapHeader bmh; |
| DiskSoundHeader sndh; | | DiskSoundHeader sndh; |
| int header_size, N_bitmaps, N_sounds; | | int header_size, N_bitmaps, N_sounds; |
| int i,size, length, x, y; | | int i,size, length; |
| char * filename; | | char * filename; |
| int read_sounds = 1; | | int read_sounds = 1; |
| int Pigdata_start; | | int Pigdata_start; |
| | |
| | | |
| header_size = (N_bitmaps*sizeof(DiskBitmapHeader)) + (N_sounds*sizeof(DiskSoundHeader)); | | header_size = (N_bitmaps*sizeof(DiskBitmapHeader)) + (N_sounds*sizeof(DiskSoundHeader)); |
| | | |
| x = 60; y = 189; | | |
| | | |
| gr_set_curfont( Gamefonts[GFONT_SMALL] ); | | gr_set_curfont( Gamefonts[GFONT_SMALL] ); |
| gr_set_fontcolor(gr_find_closest_color_current( 20, 20, 20 ),-1 ); | | gr_set_fontcolor(gr_find_closest_color_current( 20, 20, 20 ),-1 ); |
| gr_printf( 0x8000, y-10, "%s...", TXT_LOADING_DATA ); | | gr_printf( 0x8000, SHEIGHT - 22, "%s...", TXT_LOADING_DATA ); |
| | | |
| for (i=0; i<N_bitmaps; i++ ) { | | for (i=0; i<N_bitmaps; i++ ) { |
| cfread( &bmh, sizeof(DiskBitmapHeader), 1, Piggy_fp ); | | cfread( &bmh, sizeof(DiskBitmapHeader), 1, Piggy_fp ); |