Files
fs2open.github.com/Launcher/metadata.cpp
T

62 lines
3.7 KiB
C++

#include <stddef.h>
#include "metadata.h"
#include "misc.h"
char *exe_types_string[MAX_EXE_TYPES + 2] =
{
"Official FreeSpace 2",
"Official FreeSpace 2 Demo",
"Official FreeSpace 1"
"No valid exe selected",
"Custom exe (assuming fs2_open exe)",
// Insert new exe data here and in exe_types
};
// This array stored specific information about the various exe's the launcher may be asked to deal with
ExeType exe_types[MAX_EXE_TYPES + 2] =
{
// exe name size Reg dir 1 Reg dir 2 Flags
"FS2.exe", "Volition", "FreeSpace2", FLAG_MULTI | FLAG_D3D5 | FLAG_FS2 | FLAG_3DFX,
"FS2Demo.exe", "Volition", "FreeSpace2Demo", FLAG_MULTI | FLAG_D3D5 | FLAG_FS2 | FLAG_3DFX,
"FS.exe", "Volition", "FreeSpace", FLAG_MULTI | FLAG_D3D5 | FLAG_FS1 | FLAG_3DFX | FLAG_SFT,
"Placeholder", NULL, NULL, 0,
// Insert new exe data here and in exe_types_string
"CUSTOM DON'T CHANGE", NULL, NULL, FLAG_MULTI | FLAG_SCP,
};
Flag retail_params_FS2[] = {
{ "-32bit", "Enable D3D 32-bit mode", false, 0, 2, "Graphics", "", },
{ "-nosound", "Disable sound and music", false, 0, 2, "Audio", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-nosound", },
{ "-nomusic", "Disable music", false, 0, 2, "Audio", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-nomusic", },
{ "-standalone", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-standalone", },
{ "-startgame", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-startgame", },
{ "-closed", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-closed", },
{ "-restricted", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-restricted", },
{ "-multilog", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-multilog", },
{ "-clientdamage", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-clientdamage", },
{ "-oldfire", "", false, 0, 2, "Troubleshoot", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-oldfire", },
{ "-coords", "Show coordinates", false, 0, 2, "Dev Tool", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-coords", },
{ "-pofspew", "", false, 0, 2, "Dev Tool", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-pofspew", }
};
int Num_retail_params_FS2 = sizeof(retail_params_FS2) / sizeof(Flag);
Flag retail_params_FS1[] = {
{ "-nosound", "Disable sound and music", false, 0, 2, "Audio", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-nosound", },
{ "-nomusic", "Disable music", false, 0, 2, "Audio", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-nomusic", },
{ "-standalone", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-standalone", },
{ "-startgame", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-startgame", },
{ "-closed", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-closed", },
{ "-restricted", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-restricted", },
{ "-multilog", "", false, 0, 2, "Multi", "http://www.hard-light.net/wiki/index.php/Command-Line_Reference#-multilog", },
};
int Num_retail_params_FS1 = sizeof(retail_params_FS1) / sizeof(Flag);