MenuSettings.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. // MenuSettings.h
  19. // Project: Nostril (aka Postal)
  20. //
  21. // History:
  22. // 06/11/97 JMI Started.
  23. //
  24. ////////////////////////////////////////////////////////////////////////////////
  25. #ifndef MENUSETTINGS_H
  26. #define MENUSETTINGS_H
  27. #include "RSPiX.h"
  28. #ifdef PATHS_IN_INCLUDES
  29. #include "WishPiX/Prefs/prefs.h"
  30. #else
  31. #include "prefs.h"
  32. #endif
  33. #include "settings.h"
  34. #include "localize.h"
  35. // Game settings
  36. class CMenuSettings : CSettings
  37. {
  38. public:
  39. public:
  40. // Set settings to default values
  41. CMenuSettings(void);
  42. // Destructor
  43. ~CMenuSettings();
  44. // Read settings that are stored in preference file
  45. short LoadPrefs(
  46. RPrefs* pPrefs);
  47. // Write settings that are stored in preference file
  48. short SavePrefs(
  49. RPrefs* pPrefs);
  50. // Load settings that are stored in game file
  51. short LoadGame(
  52. RFile* pFile);
  53. // Save settings that are stored in game file
  54. short SaveGame(
  55. RFile* pFile);
  56. // Temporarily set settings for demo mode (file is for saving current settings)
  57. short PreDemo(
  58. RFile* pFile);
  59. // Restore settings to what they were prior to demo mode
  60. short PostDemo(
  61. RFile* pFile);
  62. };
  63. #endif // MENUSETTINGS_H
  64. ////////////////////////////////////////////////////////////////////////////////
  65. // EOF
  66. ////////////////////////////////////////////////////////////////////////////////