useroptions.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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: useroptions.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 USEROPTIONS_H
  29. #define USEROPTIONS_H
  30. #include "regbool.h"
  31. #include "regint.h"
  32. #include "regfloat.h"
  33. #include "boolean.h"
  34. #include "regstring.h"
  35. #include "bandwidth.h"
  36. //-----------------------------------------------------------------------------
  37. //
  38. // Various options that the player chooses
  39. //
  40. class cUserOptions
  41. {
  42. public:
  43. static bool Parse_Command_Line(LPCSTR command);
  44. static void Set_Server_INI_File(char *cmd_line_entry);
  45. static void Set_Bandwidth_Type(BANDWIDTH_TYPE_ENUM bandwidth_type);
  46. static BANDWIDTH_TYPE_ENUM Get_Bandwidth_Type(void);
  47. static void Set_Bandwidth_Bps(int bandwidth_bbs);
  48. static void Reread(void);
  49. static cRegistryBool ShowNamesOnSoldier;
  50. static cRegistryBool SkipQuitConfirmDialog;
  51. static cRegistryBool SkipIngameQuitConfirmDialog;
  52. static cRegistryBool CameraLockedToTurret;
  53. static cRegistryBool PermitDiagLogging;
  54. static cRegistryInt Sku;
  55. static cRegistryInt BandwidthBps;
  56. static cRegistryInt BandwidthType;
  57. static cRegistryInt GameSpyBandwidthType;
  58. static cRegistryInt PreferredGameSpyNic;
  59. static cRegistryString GameSpyNickname;
  60. static cRegistryInt GameSpyGamePort;
  61. static cRegistryInt GameSpyQueryPort;
  62. static cRegistryInt SplashCount;
  63. static cRegistryBool DoneClientBandwidthTest;
  64. static cRegistryInt PreferredLanNic;
  65. static cRegistryInt NetUpdateRate;
  66. static cRegistryFloat ClientHintFactor;
  67. static cRegistryFloat MaxFacingPenalty;
  68. static cRegistryFloat IrrelevancePenalty;
  69. static cRegistryInt ResultsLogNumber;
  70. private:
  71. };
  72. //-----------------------------------------------------------------------------
  73. #endif // USEROPTIONS_H
  74. /*
  75. static cRegistryInt GameListFilterMaxPing;
  76. static cRegistryInt GameListFilterMinPlayersPresent;
  77. static cRegistryInt GameListFilterMaxPlayersPresent;
  78. static cRegistryInt GameListFilterMaxPlayersPermitted;
  79. static cRegistryBool GameListFilterShowPrivateGames;
  80. static cRegistryBool GameListFilterShowOnlyDedicatedGames;
  81. static cRegistryBool GameListFilterShowOnlyGamesIRankFor;
  82. */