From 5b9d9f92ea76320e405a1ffef8f1ed295cbd9999 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Tue, 5 Jun 2012 18:53:11 +0000 Subject: Documentation update --- Doc/doxygen/html/_main_8cpp_source.html | 274 ++++++++++++++++---------------- 1 file changed, 135 insertions(+), 139 deletions(-) (limited to 'Doc/doxygen/html/_main_8cpp_source.html') diff --git a/Doc/doxygen/html/_main_8cpp_source.html b/Doc/doxygen/html/_main_8cpp_source.html index 7c8fa27..2746d7b 100644 --- a/Doc/doxygen/html/_main_8cpp_source.html +++ b/Doc/doxygen/html/_main_8cpp_source.html @@ -142,159 +142,155 @@ $(document).ready(function(){initNavTree('_main_8cpp.html','');});
38 extern int VD3D_describe_things;
39 int dump_missions = 0;
40 
-
41 #ifdef STARSHATTER_DEMO_RELEASE
-
42 const char* versionInfo = "5.0 DEMO";
-
43 #else
-
44 const char* versionInfo = "5.0.5";
-
45 #endif
-
46 
-
47 static void PrintLogHeader()
-
48 {
-
49  Text sTime = FormatTimeString();
-
50 
-
51  Print("+====================================================================+\n");
-
52  Print("| STARSHATTER %-25s%29s |\n", versionInfo, sTime.data());
-
53 
-
54  Memory::SetLevel(Memory::MAXIMAL);
-
55  Memory::OpenLog();
-
56  MachineInfo::DescribeMachine();
-
57 }
-
58 
-
59 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
-
60 LPSTR lpCmdLine, int nCmdShow)
-
61 {
-
62  int result = 0;
-
63  int test_mode = 0;
-
64  int do_server = 0;
-
65 
-
66  if (strstr(lpCmdLine, "-server"))
-
67  ErrLog = fopen("serverlog.txt", "w");
-
68  else
-
69  ErrLog = fopen("errlog.txt", "w");
-
70 
-
71  PrintLogHeader();
-
72 
-
73  if (strstr(lpCmdLine, "-test")) {
-
74  Print(" Request TEST mode\n");
-
75  test_mode = 1;
+
41 const char* versionInfo = "5.1.66";
+
42 
+
43 static void PrintLogHeader()
+
44 {
+
45  Text sTime = FormatTimeString();
+
46 
+
47  Print("+====================================================================+\n");
+
48  Print("| STARSHATTER %-25s%29s |\n", versionInfo, sTime.data());
+
49 
+
50  Memory::SetLevel(Memory::MAXIMAL);
+
51  Memory::OpenLog();
+
52  MachineInfo::DescribeMachine();
+
53 }
+
54 
+
55 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
+
56 LPSTR lpCmdLine, int nCmdShow)
+
57 {
+
58  int result = 0;
+
59  int test_mode = 0;
+
60  int do_server = 0;
+
61 
+
62  if (strstr(lpCmdLine, "-server"))
+
63  ErrLog = fopen("serverlog.txt", "w");
+
64  else
+
65  ErrLog = fopen("errlog.txt", "w");
+
66 
+
67  PrintLogHeader();
+
68 
+
69  if (strstr(lpCmdLine, "-test")) {
+
70  Print(" Request TEST mode\n");
+
71  test_mode = 1;
+
72  }
+
73 
+
74  if (strstr(lpCmdLine, "-fps")) {
+
75  HUDView::ShowFPS(true);
76  }
77 
-
78  if (strstr(lpCmdLine, "-fps")) {
-
79  HUDView::ShowFPS(true);
-
80  }
-
81 
-
82  if (strstr(lpCmdLine, "-dump")) {
-
83  Print(" Request dump dynamic missions\n");
-
84  dump_missions = 1;
-
85  }
-
86 
-
87  if (strstr(lpCmdLine, "-lan")) {
-
88  Print(" Request LAN ONLY mode\n");
-
89  NetBrokerClient::Disable();
-
90  }
-
91 
-
92  if (strstr(lpCmdLine, "-server")) {
-
93  do_server = 1;
-
94  Print(" Request Standalone Server Mode\n");
-
95  }
+
78  if (strstr(lpCmdLine, "-dump")) {
+
79  Print(" Request dump dynamic missions\n");
+
80  dump_missions = 1;
+
81  }
+
82 
+
83  if (strstr(lpCmdLine, "-lan")) {
+
84  Print(" Request LAN ONLY mode\n");
+
85  NetBrokerClient::Disable();
+
86  }
+
87 
+
88  if (strstr(lpCmdLine, "-server")) {
+
89  do_server = 1;
+
90  Print(" Request Standalone Server Mode\n");
+
91  }
+
92 
+
93  char* d3dinfo = strstr(lpCmdLine, "-d3d");
+
94  if (d3dinfo) {
+
95  int n = d3dinfo[4] - '0';
96 
-
97  char* d3dinfo = strstr(lpCmdLine, "-d3d");
-
98  if (d3dinfo) {
-
99  int n = d3dinfo[4] - '0';
-
100 
-
101  if (n >= 0 && n <= 5)
-
102  VD3D_describe_things = n;
-
103 
-
104  Print(" D3D Info Level: %d\n", VD3D_describe_things);
-
105  }
-
106  else {
-
107  VD3D_describe_things = 0;
-
108  }
-
109 
-
110 
-
111  // FREE VERSION - AUTHORIZATION DISABLED
-
112  /*
-
113 ::Print(" Checking authorization codes...\n");
-
114 if (!Authorization::IsUserAuthorized()) {
-
115  if (!DataLoader::GetLoader()) {
-
116  DataLoader::Initialize();
-
117  DataLoader::GetLoader()->EnableDatafile("content.dat");
-
118  }
-
119 
-
120  Game* game = new Game();
-
121  game->InitContent();
+
97  if (n >= 0 && n <= 5)
+
98  VD3D_describe_things = n;
+
99 
+
100  Print(" D3D Info Level: %d\n", VD3D_describe_things);
+
101  }
+
102  else {
+
103  VD3D_describe_things = 0;
+
104  }
+
105 
+
106 
+
107  // FREE VERSION - AUTHORIZATION DISABLED
+
108  /*
+
109 ::Print(" Checking authorization codes...\n");
+
110 if (!Authorization::IsUserAuthorized()) {
+
111  if (!DataLoader::GetLoader()) {
+
112  DataLoader::Initialize();
+
113  DataLoader::GetLoader()->EnableDatafile("content.dat");
+
114  }
+
115 
+
116  Game* game = new Game();
+
117  game->InitContent();
+
118 
+
119  MessageBox(0, FormatTextEscape(Game::GetText("main.auth-invalid")).data(),
+
120  Game::GetText("main.title.error").data(), MB_OK);
+
121  ::Print(" Not authorized.\n");
122 
-
123  MessageBox(0, FormatTextEscape(Game::GetText("main.auth-invalid")).data(),
-
124  Game::GetText("main.title.error").data(), MB_OK);
-
125  ::Print(" Not authorized.\n");
-
126 
-
127  delete game;
-
128  DataLoader::Close();
-
129 }
-
130 else {
-
131  ::Print(" Authorized\n");
-
132  */
-
133  try {
-
134  NetLayer net;
-
135 
-
136  if (do_server) {
-
137  StarServer* server = new(__FILE__,__LINE__) StarServer();
-
138 
-
139  if (server->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
-
140  result = server->Run();
-
141 
-
142  Print("\n+====================================================================+\n");
-
143  Print(" Begin Shutdown...\n");
-
144 
-
145  delete server;
-
146  }
-
147 
-
148  else {
-
149  Starshatter* stars = 0;
-
150 
-
151  stars = new(__FILE__,__LINE__) Starshatter;
-
152  stars->SetTestMode(test_mode);
-
153 
-
154  if (stars->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
-
155  result = stars->Run();
-
156 
-
157  Print("\n+====================================================================+\n");
-
158  Print(" Begin Shutdown...\n");
-
159 
-
160  delete stars;
-
161  }
-
162 
-
163  Token::close();
+
123  delete game;
+
124  DataLoader::Close();
+
125 }
+
126 else {
+
127  ::Print(" Authorized\n");
+
128  */
+
129  try {
+
130  NetLayer net;
+
131 
+
132  if (do_server) {
+
133  StarServer* server = new(__FILE__,__LINE__) StarServer();
+
134 
+
135  if (server->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
+
136  result = server->Run();
+
137 
+
138  Print("\n+====================================================================+\n");
+
139  Print(" Begin Shutdown...\n");
+
140 
+
141  delete server;
+
142  }
+
143 
+
144  else {
+
145  Starshatter* stars = 0;
+
146 
+
147  stars = new(__FILE__,__LINE__) Starshatter;
+
148  stars->SetTestMode(test_mode);
+
149 
+
150  if (stars->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
+
151  result = stars->Run();
+
152 
+
153  Print("\n+====================================================================+\n");
+
154  Print(" Begin Shutdown...\n");
+
155 
+
156  delete stars;
+
157  }
+
158 
+
159  Token::close();
+
160 
+
161  if (*Game::GetPanicMessage())
+
162  MessageBox(0, Game::GetPanicMessage(), "Starshatter - Error", MB_OK);
+
163  }
164 
-
165  if (*Game::GetPanicMessage())
-
166  MessageBox(0, Game::GetPanicMessage(), "Starshatter - Error", MB_OK);
+
165  catch (const char* msg) {
+
166  Print(" FATAL EXCEPTION: '%s'\n", msg);
167  }
-
168 
-
169  catch (const char* msg) {
-
170  Print(" FATAL EXCEPTION: '%s'\n", msg);
-
171  }
-
172  /* } */
+
168  /* } */
+
169 
+
170  Memory::Stats();
+
171  Memory::DumpLeaks();
+
172  Memory::CloseLog();
173 
-
174  Memory::Stats();
-
175  Memory::DumpLeaks();
-
176  Memory::CloseLog();
-
177 
-
178  Print("+====================================================================+\n");
-
179  Print(" END OF LINE.\n");
-
180 
-
181  fclose(ErrLog);
+
174  Print("+====================================================================+\n");
+
175  Print(" END OF LINE.\n");
+
176 
+
177  fclose(ErrLog);
+
178 
+
179  return result;
+
180 }
+
181 
182 
-
183  return result;
-
184 }
-
185 
-
186