devoptions.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. //
  19. // Filename: devoptions.h
  20. // Author: Tom Spencer-Smith
  21. // Date: Dec 1999
  22. // Description:
  23. //
  24. //-----------------------------------------------------------------------------
  25. #if defined(_MSV_VER)
  26. #pragma once
  27. #endif
  28. #ifndef DEVOPTIONS_H
  29. #define DEVOPTIONS_H
  30. #include "regbool.h"
  31. #include "regint.h"
  32. #include "boolean.h"
  33. //-----------------------------------------------------------------------------
  34. //
  35. // Various options used for developing and testing
  36. //
  37. class cDevOptions
  38. {
  39. public:
  40. #ifdef WWDEBUG
  41. static cRegistryBool ShowGodStatus;
  42. static cRegistryBool ShowSoldierData;
  43. static cRegistryBool ShowVehicleData;
  44. static cRegistryBool ShowDoorData;
  45. static cRegistryBool ShowElevatorData;
  46. static cRegistryBool ShowDSAPOData;
  47. static cRegistryBool ShowPowerupData;
  48. static cRegistryBool ShowBuildingData;
  49. static cRegistryBool ShowSpawnerData;
  50. static cRegistryBool ShowImportStates;
  51. static cRegistryBool ShowImportStatesSV;
  52. static cRegistryBool ShowServerRhostData;
  53. static cRegistryBool ShowClientRhostData;
  54. //static cRegistryBool ShowPacketGraphs;
  55. static cRegistryBool PacketsSentServer;
  56. static cRegistryBool PacketsSentClient;
  57. static cRegistryBool PacketsRecdServer;
  58. static cRegistryBool PacketsRecdClient;
  59. static cRegistryBool AvgSizePacketsSentServer;
  60. static cRegistryBool AvgSizePacketsSentClient;
  61. static cRegistryBool AvgSizePacketsRecdServer;
  62. static cRegistryBool AvgSizePacketsRecdClient;
  63. static cRegistryBool BytesSentServer;
  64. static cRegistryBool BytesSentClient;
  65. static cRegistryBool BytesRecdServer;
  66. static cRegistryBool BytesRecdClient;
  67. static cRegistryBool WwnetPacketsSentServer;
  68. static cRegistryBool WwnetPacketsSentClient;
  69. static cRegistryBool WwnetPacketsRecdServer;
  70. static cRegistryBool WwnetPacketsRecdClient;
  71. static cRegistryBool WwnetAvgSizePacketsSentServer;
  72. static cRegistryBool WwnetAvgSizePacketsSentClient;
  73. static cRegistryBool WwnetAvgSizePacketsRecdServer;
  74. static cRegistryBool WwnetAvgSizePacketsRecdClient;
  75. static cRegistryBool WwnetBytesSentServer;
  76. static cRegistryBool WwnetBytesSentClient;
  77. static cRegistryBool WwnetBytesRecdServer;
  78. static cRegistryBool WwnetBytesRecdClient;
  79. static cRegistryBool ShowPriorities;
  80. static cRegistryBool ShowBandwidth;
  81. static cRegistryBool ShowLatency;
  82. static cRegistryBool ShowLastContact;
  83. static cRegistryBool ShowListSizes;
  84. static cRegistryBool ShowListTimes;
  85. static cRegistryBool ShowListPacketSizes;
  86. //static cRegistryBool ShowBandwidthBudgetOut;
  87. static cRegistryBool ShowWatchList;
  88. static cRegistryBool ShowWolLocation;
  89. static cRegistryBool ShowDiagnostics;
  90. static cRegistryBool ShowMenuStack;
  91. static cRegistryBool ShowIpAddresses;
  92. static cRegistryBool ShowClientFps;
  93. static cRegistryBool ShowId;
  94. static cRegistryBool ShowPing;
  95. static cRegistryBool ShowObjectTally;
  96. static cRegistryBool ShowInactivePlayers;
  97. static cRegistryBool SoundEffectOnAssert;
  98. static cRegistryBool DisplayLogfileOnAssert;
  99. static cRegistryBool BreakToDebuggerOnAssert;
  100. static cRegistryBool ShutdownInputOnAssert;
  101. static cRegistryBool PreloadAssets;
  102. static cRegistryBool FilterLevelFiles;
  103. static cRegistryBool IBelieveInGod;
  104. static cRegistryBool LogDataSafe;
  105. static cRegistryBool EnableExceptionHandler;
  106. static cRegistryBool ShowThumbnailPreInitDialog;
  107. static cRegistryBool CrtDbgEnabled;
  108. static cRegistryBool PacketOptimizationsEnabled;
  109. static cRegistryBool ShowMoney;
  110. static cRegistryBool ExtraNetDebug;
  111. static cRegistryBool ExtraModemBandwidthThrottling;
  112. static cRegistryBool ShowGameSpyAuthState;
  113. //
  114. // These are development conveniences for starting a client or server,
  115. // either from a main menu keypress or from a command line param.
  116. //
  117. static cRegistryInt DesiredFrameSleepMs;
  118. static cRegistryInt SimulatedPacketLossPc;
  119. static cRegistryInt SimulatedPacketDuplicationPc;
  120. static cRegistryInt SimulatedLatencyRangeMsLower;
  121. static cRegistryInt SimulatedLatencyRangeMsUpper;
  122. static cRegistryInt SpamCount;
  123. //
  124. // GoToMainMenu uses QuickFullExit but stops at the main menu.
  125. //
  126. static cBoolean GoToMainMenu;
  127. #endif WWDEBUG
  128. //
  129. // QuickFullExit is a quick but hopefully clean way to leave combat (via
  130. // a keypress), and stop execution.
  131. // If running as a server, clients will be instructed to exit also (debug only).
  132. //
  133. static cBoolean QuickFullExit;
  134. static cRegistryBool ExitThreadOnAssert;
  135. static cRegistryBool CompareExeVersionOnNetwork;
  136. static cRegistryBool ShowFps;
  137. // TEMP. ST - 12/10/2001 3:39PM
  138. static cRegistryBool UseNewTCADO;
  139. private:
  140. };
  141. //-----------------------------------------------------------------------------
  142. #endif // DEVOPTIONS_H
  143. //static cRegistryBool DoThumbnailPreInit;