prefs.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //===========================================================================//
  2. // Copyright (C) Microsoft Corporation. All rights reserved. //
  3. //===========================================================================//
  4. #ifndef PREFS_H
  5. #define PREFS_H
  6. #ifndef MCLIB_H
  7. #include "mclib.h"
  8. #endif
  9. class CPrefs {
  10. public:
  11. CPrefs();
  12. int load( const char* pFileName = "options");
  13. int save();
  14. int applyPrefs(bool bApplyResolution = 1);
  15. void setNewName( const char* pNewName );
  16. void setNewUnit( const char* pNewUnit );
  17. void setNewIP( const char* pNewIP );
  18. public:
  19. long DigitalMasterVolume;
  20. long MusicVolume;
  21. long sfxVolume;
  22. long RadioVolume;
  23. long BettyVolume;
  24. bool useShadows;
  25. bool useWaterInterestTexture;
  26. bool useHighObjectDetail;
  27. long GameDifficulty;
  28. bool useUnlimitedAmmo;
  29. long renderer;
  30. long resolution;
  31. bool fullScreen;
  32. long gammaLevel;
  33. bool useLeftRightMouseProfile; // if false, use old style commands
  34. long baseColor;
  35. long highlightColor;
  36. long faction;
  37. char insigniaFile[256];
  38. char unitName[10][256];
  39. char playerName[10][256];
  40. char ipAddresses[10][24];
  41. bool pilotVideos;
  42. bool useNonWeaponEffects;
  43. bool useLocalShadows;
  44. bool asyncMouse;
  45. long fogPos;
  46. char bitDepth; // 0 == 16, 1 == 32
  47. bool saveTranscripts;
  48. bool tutorials;
  49. #if 0
  50. long FilterState;
  51. long TERRAIN_TXM_SIZE;
  52. long ObjectTextureSize;
  53. bool useRealLOS;
  54. float doubleClickThreshold;
  55. long dragThreshold;
  56. DWORD BaseVertexColor; //This color is applied to all vertices in game as Brightness correction.
  57. #endif
  58. };
  59. extern CPrefs prefs;
  60. #endif /*PREFS_H*/