Open source remastering of the Freespace 2 engine
missionload.cpp File Reference

Go to the source code of this file.


#define MLM_MAX_MISSIONS   256


void ml_update_recent_missions (char *filename)
int mission_load (char *filename_ext)
void ml_change_listbox ()
int mission_campaign_get_filenames (char *filename, char dest[][NAME_LENGTH], int *num)
void mission_load_menu_init ()
void mission_load_menu_do ()
void mission_load_menu_close ()


mission The_mission
int shifted_ascii_table []
int ascii_table []
int Num_recent_missions
int mlm_active =0
UI_WINDOW mlm_window
UI_LISTBOX mlm_mission_list
UI_LISTBOX recent_mission_list
UI_LISTBOX campaign_filter
UI_BUTTON mlm_ok
UI_BUTTON mlm_cancel
char * mlm_missions [MLM_MAX_MISSIONS]
char * recent_missions [MAX_RECENT_MISSIONS]
char * campaign_names [MAX_CAMPAIGNS+2]
char * campaign_missions [MAX_CAMPAIGN_MISSIONS]
int mlm_nfiles = 0
char * jtmp_missions [MLM_MAX_MISSIONS]
int jtmp_nfiles = 0

Macro Definition Documentation

#define MLM_MAX_MISSIONS   256

Definition at line 124 of file missionload.cpp.

Function Documentation

int mission_campaign_get_filenames ( char *  filename,
char  dest[][NAME_LENGTH],
int num 

Extract the mission filenames for a campaign.

filenameName of campaign file
destStorage for the mission filename, must be already allocated
numOutput parameter for the number of mission filenames in the campaign

note that dest should allocate at least dest[MAX_CAMPAIGN_MISSIONS][NAME_LENGTH]

Definition at line 1408 of file missioncampaign.cpp.

int mission_load ( char *  filename_ext)

Definition at line 83 of file missionload.cpp.

void mission_load_menu_close ( )

Definition at line 351 of file missionload.cpp.

void mission_load_menu_do ( )

Definition at line 222 of file missionload.cpp.

void mission_load_menu_init ( )

Definition at line 174 of file missionload.cpp.

void ml_change_listbox ( )

Definition at line 145 of file missionload.cpp.

void ml_update_recent_missions ( char *  filename)

Definition at line 43 of file missionload.cpp.

Variable Documentation

int ascii_table[]

Definition at line 72 of file key.cpp.

UI_LISTBOX campaign_filter

Definition at line 129 of file missionload.cpp.

char* campaign_missions[MAX_CAMPAIGN_MISSIONS]

Definition at line 135 of file missionload.cpp.

char* campaign_names[MAX_CAMPAIGNS+2]

Definition at line 134 of file missionload.cpp.

char* jtmp_missions[MLM_MAX_MISSIONS]

Definition at line 141 of file missionload.cpp.

int jtmp_nfiles = 0

Definition at line 142 of file missionload.cpp.

int mlm_active =0

Definition at line 125 of file missionload.cpp.

UI_BUTTON mlm_cancel

Definition at line 131 of file missionload.cpp.

UI_LISTBOX mlm_mission_list

Definition at line 127 of file missionload.cpp.

char* mlm_missions[MLM_MAX_MISSIONS]

Definition at line 132 of file missionload.cpp.

int mlm_nfiles = 0

Definition at line 136 of file missionload.cpp.

UI_BUTTON mlm_ok

Definition at line 131 of file missionload.cpp.

UI_WINDOW mlm_window

Definition at line 126 of file missionload.cpp.

int Num_recent_missions

Definition at line 35 of file missionload.cpp.

UI_LISTBOX recent_mission_list

Definition at line 128 of file missionload.cpp.


Definition at line 34 of file missionload.cpp.

char* recent_missions[MAX_RECENT_MISSIONS]

Definition at line 133 of file missionload.cpp.

int shifted_ascii_table[]

Definition at line 83 of file key.cpp.

mission The_mission

Definition at line 86 of file missionparse.cpp.