#include <stdio.h>#include <malloc.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <limits.h>#include "gr.h"#include "3d.h"#include "inferno.h"#include "error.h"#include "game.h"#include "segment.h"#include "u_mem.h"#include "texmerge.h"#include "menu.h"#include "digi.h"#include "args.h"#include "titles.h"#include "text.h"#include "ipx.h"#include "newdemo.h"#include "network.h"#include "modem.h"#include "gamefont.h"#include "kconfig.h"#include "newmenu.h"#include "desc_id.h"#include "config.h"#include "joydefs.h"#include "multi.h"#include "songs.h"#include "cfile.h"#include "gameseq.h"#include "timer.h"#include "joy.h"#include "key.h"#include "mono.h"#include "palette.h"#include "bm.h"#include "screens.h"#include "arch.h"#include "hudmsg.h"#include "playsave.h"#include "d_io.h"#include "automap.h"#include "hudlog.h"#include "cdplay.h"#include "ban.h"#include "gauges.h"#include "pingstat.h"#include "physics.h"#include "strutil.h"#include "altsound.h"#include "../texmap/scanline.h"#include "d_delay.h"#include "vers_id.h"#include <SDL/SDL.h>Defines | |
| #define | getch() getchar() |
| #define | SCREENMODE(X, Y, C) if ( (i=FindArg( "-" #X "x" #Y ))&&(i<argnum)) {argnum=i; screen_mode = SM( X , Y );if (Inferno_verbose) printf( "Using " #X "x" #Y " ...\n" );screen_width = X;screen_height = Y;use_double_buffer = 1;screen_compatible = C;} |
| #define | SMODE(V, VV, VG, X, Y) if ( (i=FindArg( "-" #V #X "x" #Y )) && (i<argnum)) {argnum=i; VV = SM( X , Y );VG=0;} |
| #define | SMODE_GR(V, VG) if ((i=FindArg("-" #V "_gameres"))){if (i<argnum) VG=1;} |
| #define | SMODE_PRINT(V, VV, VG) if (Inferno_verbose) { if (VG) printf( #V " using game resolution ...\n"); else printf( #V " using %ix%i ...\n",SM_W(VV),SM_H(VV) ); } |
| #define | S_MODE(V, VV, VG) argnum=INT_MAX;SMODE(V,VV,VG,320,200);SMODE(V,VV,VG,320,240);SMODE(V,VV,VG,320,400);SMODE(V,VV,VG,640,400);SMODE(V,VV,VG,640,480);SMODE(V,VV,VG,800,600);SMODE(V,VV,VG,1024,768);SMODE(V,VV,VG,1280,1024);SMODE(V,VV,VG,1600,1200);SMODE_GR(V,VG);SMODE_PRINT(V,VV,VG); |
Functions | |
| void | check_joystick_calibration () |
| void | show_order_form () |
| int | init_graphics () |
| void | show_cmdline_help () |
| void | vfx_set_palette_sub (ubyte *) |
| int | main (int argc, char **argv) |
| void | quit_request () |
Variables | |
| static const char | desc_id_checksum_str [] = DESC_ID_CHKSUM |
| char | desc_id_exit_num = 0 |
| int | Function_mode = FMODE_MENU |
| int | Screen_mode = -1 |
| int | descent_critical_error = 0 |
| unsigned int | descent_critical_deverror = 0 |
| unsigned int | descent_critical_errcode = 0 |
| u_int32_t | menu_screen_mode = SM(640,480) |
| int | menu_use_game_res = 0 |
| fix | fixed_frametime |
| int | framerate_on |
| int | Inferno_verbose = 0 |
| int | start_net_immediately = 0 |
| int | start_with_mission = 0 |
| char * | start_with_mission_name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Global variables |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6