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/_mod_config_8cpp_source.html | 303 +++++++++++++------------- 1 file changed, 147 insertions(+), 156 deletions(-) (limited to 'Doc/doxygen/html/_mod_config_8cpp_source.html') diff --git a/Doc/doxygen/html/_mod_config_8cpp_source.html b/Doc/doxygen/html/_mod_config_8cpp_source.html index 3d8f5e6..5a8caba 100644 --- a/Doc/doxygen/html/_mod_config_8cpp_source.html +++ b/Doc/doxygen/html/_mod_config_8cpp_source.html @@ -104,7 +104,7 @@ $(document).ready(function(){initNavTree('_mod_config_8cpp.html','');});
Go to the documentation of this file.
1 /* Project Starshatter 5.0
2  Destroyer Studios LLC
-
3  Copyright © 1997-2007. All Rights Reserved.
+
3  Copyright (C) 1997-2007. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: ModConfig.cpp
@@ -302,7 +302,7 @@ $(document).ready(function(){initNavTree('_mod_config_8cpp.html','');});
198  return mod_info;
199  }
200 
-
201  return false;
+
201  return NULL;
202 }
203 
204 // +-------------------------------------------------------------------+
@@ -330,168 +330,159 @@ $(document).ready(function(){initNavTree('_mod_config_8cpp.html','');});
226  if (enabled.size() < 1)
227  return;
228 
-
229 #ifdef STARSHATTER_DEMO_RELEASE
-
230  Print("\nPACKAGED MODS ARE NOT SUPPORTED IN THIS DEMO\n");
-
231 #else
-
232  Print("\nDEPLOYING MODS\n--------------\n");
-
233 
-
234  int i = 1;
-
235  ListIter<Text> iter = enabled;
-
236  while (++iter) {
-
237  Text* name = iter.value();
-
238 
-
239  if (IsDeployed(name->data())) {
-
240  Print(" %d. %s is already deployed (skipping)\n", i++, name->data());
-
241  continue;
-
242  }
-
243 
-
244  Print(" %d. %s\n", i++, name->data());
-
245 
-
246  ModInfo* mod_info = new(__FILE__,__LINE__) ModInfo;
-
247 
-
248  if (mod_info->Load(name->data()) && mod_info->Enable()) {
-
249  mods.append(mod_info);
-
250  }
-
251  else {
-
252  Print(" Could not deploy '%s' - disabling\n", name->data());
-
253 
-
254  delete mod_info;
-
255  iter.removeItem();
-
256  disabled.append(name);
-
257  }
-
258  }
-
259 
-
260  Print("\n");
-
261  Game::UseLocale(0);
-
262 #endif
-
263 }
-
264 
-
265 void
- -
267 {
-
268  Print("UNDEPLOYING MODS\n");
-
269  mods.destroy();
+
229  Print("\nDEPLOYING MODS\n--------------\n");
+
230 
+
231  int i = 1;
+
232  ListIter<Text> iter = enabled;
+
233  while (++iter) {
+
234  Text* name = iter.value();
+
235 
+
236  if (IsDeployed(name->data())) {
+
237  Print(" %d. %s is already deployed (skipping)\n", i++, name->data());
+
238  continue;
+
239  }
+
240 
+
241  Print(" %d. %s\n", i++, name->data());
+
242 
+
243  ModInfo* mod_info = new(__FILE__,__LINE__) ModInfo;
+
244 
+
245  if (mod_info->Load(name->data()) && mod_info->Enable()) {
+
246  mods.append(mod_info);
+
247  }
+
248  else {
+
249  Print(" Could not deploy '%s' - disabling\n", name->data());
+
250 
+
251  delete mod_info;
+
252  iter.removeItem();
+
253  disabled.append(name);
+
254  }
+
255  }
+
256 
+
257  Print("\n");
+
258  Game::UseLocale(0);
+
259 }
+
260 
+
261 void
+ +
263 {
+
264  Print("UNDEPLOYING MODS\n");
+
265  mods.destroy();
+
266 
+ + +
269 }
270 
- - -
273 }
-
274 
-
275 void
- -
277 {
-
278  Undeploy();
-
279  Deploy();
-
280 
-
281  Campaign::Close();
- -
283  Campaign::SelectCampaign("Single Missions");
-
284 }
-
285 
-
286 // +-------------------------------------------------------------------+
-
287 
-
288 void
- -
290 {
-
291 #ifdef STARSHATTER_DEMO_RELEASE
-
292  DisableMod(name);
-
293 #else
-
294 
-
295  if (!name || !*name)
-
296  return;
-
297 
-
298  Text* mod_name;
-
299 
-
300  ListIter<Text> iter = disabled;
-
301  while (++iter) {
-
302  Text* t = iter.value();
-
303 
-
304  if (*t == name) {
-
305  mod_name = t;
-
306  iter.removeItem();
-
307  break;
-
308  }
-
309  }
-
310 
-
311  if (mod_name) {
-
312  enabled.append(mod_name);
-
313 
-
314  if (!IsDeployed(*mod_name)) {
-
315  ModInfo* mod_info = new(__FILE__,__LINE__) ModInfo;
-
316 
-
317  if (mod_info->Load(*mod_name) && mod_info->Enable()) {
-
318  mods.append(mod_info);
-
319  }
-
320  }
-
321  }
-
322 #endif
-
323 }
-
324 
-
325 void
- -
327 {
-
328  if (!name || !*name)
-
329  return;
-
330 
-
331  Text* mod_name;
-
332 
-
333  ListIter<Text> iter = enabled;
-
334  while (++iter) {
-
335  Text* t = iter.value();
-
336 
-
337  if (*t == name) {
-
338  mod_name = t;
-
339  iter.removeItem();
-
340  break;
-
341  }
-
342  }
-
343 
-
344  if (mod_name) {
-
345  disabled.append(mod_name);
-
346 
-
347  ListIter<ModInfo> iter = mods;
-
348  while (++iter) {
-
349  ModInfo* mod_info = iter.value();
-
350  if (mod_info->Name() == *mod_name) {
-
351  delete iter.removeItem();
-
352  break;
-
353  }
-
354  }
-
355  }
-
356 }
+
271 void
+ +
273 {
+
274  Undeploy();
+
275  Deploy();
+
276 
+
277  Campaign::Close();
+ +
279  Campaign::SelectCampaign("Single Missions");
+
280 }
+
281 
+
282 // +-------------------------------------------------------------------+
+
283 
+
284 void
+ +
286 {
+
287  if (!name || !*name)
+
288  return;
+
289 
+
290  Text* mod_name;
+
291 
+
292  ListIter<Text> iter = disabled;
+
293  while (++iter) {
+
294  Text* t = iter.value();
+
295 
+
296  if (*t == name) {
+
297  mod_name = t;
+
298  iter.removeItem();
+
299  break;
+
300  }
+
301  }
+
302 
+
303  if (mod_name) {
+
304  enabled.append(mod_name);
+
305 
+
306  if (!IsDeployed(*mod_name)) {
+
307  ModInfo* mod_info = new(__FILE__,__LINE__) ModInfo;
+
308 
+
309  if (mod_info->Load(*mod_name) && mod_info->Enable()) {
+
310  mods.append(mod_info);
+
311  }
+
312  }
+
313  }
+
314 }
+
315 
+
316 void
+ +
318 {
+
319  if (!name || !*name)
+
320  return;
+
321 
+
322  Text* mod_name;
+
323 
+
324  ListIter<Text> iter = enabled;
+
325  while (++iter) {
+
326  Text* t = iter.value();
+
327 
+
328  if (*t == name) {
+
329  mod_name = t;
+
330  iter.removeItem();
+
331  break;
+
332  }
+
333  }
+
334 
+
335  if (mod_name) {
+
336  disabled.append(mod_name);
+
337 
+
338  ListIter<ModInfo> iter = mods;
+
339  while (++iter) {
+
340  ModInfo* mod_info = iter.value();
+
341  if (mod_info->Name() == *mod_name) {
+
342  delete iter.removeItem();
+
343  break;
+
344  }
+
345  }
+
346  }
+
347 }
+
348 
+
349 // +-------------------------------------------------------------------+
+
350 
+
351 void
+ +
353 {
+
354  if (mod_index > 0 && mod_index < enabled.size()) {
+
355  Text* mod1 = enabled.at(mod_index-1);
+
356  Text* mod2 = enabled.at(mod_index);
357 
-
358 // +-------------------------------------------------------------------+
-
359 
-
360 void
- -
362 {
-
363  if (mod_index > 0 && mod_index < enabled.size()) {
-
364  Text* mod1 = enabled.at(mod_index-1);
-
365  Text* mod2 = enabled.at(mod_index);
-
366 
-
367  enabled.at(mod_index-1) = mod2;
-
368  enabled.at(mod_index) = mod1;
-
369  }
-
370 }
-
371 
-
372 void
- -
374 {
-
375  if (mod_index >= 0 && mod_index < enabled.size()-1) {
-
376  Text* mod1 = enabled.at(mod_index);
-
377  Text* mod2 = enabled.at(mod_index+1);
-
378 
-
379  enabled.at(mod_index) = mod2;
-
380  enabled.at(mod_index+1) = mod1;
-
381  }
-
382 }
-
383 
+
358  enabled.at(mod_index-1) = mod2;
+
359  enabled.at(mod_index) = mod1;
+
360  }
+
361 }
+
362 
+
363 void
+ +
365 {
+
366  if (mod_index >= 0 && mod_index < enabled.size()-1) {
+
367  Text* mod1 = enabled.at(mod_index);
+
368  Text* mod2 = enabled.at(mod_index+1);
+
369 
+
370  enabled.at(mod_index) = mod2;
+
371  enabled.at(mod_index+1) = mod1;
+
372  }
+
373 }
+
374