Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.8 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SAVEGAMEDIALOG_H
  8. #define SAVEGAMEDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "basesavegamedialog.h"
  13. #include "savegamebrowserdialog.h"
  14. //-----------------------------------------------------------------------------
  15. // Purpose: Save game dialog
  16. //-----------------------------------------------------------------------------
  17. class CSaveGameDialog : public CBaseSaveGameDialog
  18. {
  19. DECLARE_CLASS_SIMPLE( CSaveGameDialog, CBaseSaveGameDialog );
  20. public:
  21. explicit CSaveGameDialog( vgui::Panel *parent );
  22. ~CSaveGameDialog();
  23. virtual void Activate();
  24. static void FindSaveSlot( char *buffer, int bufsize );
  25. protected:
  26. virtual void OnCommand( const char *command );
  27. virtual void OnScanningSaveGames();
  28. };
  29. #define SAVE_NUM_ITEMS 4
  30. //
  31. //
  32. //
  33. // dgoodenough - GCC apparently does not consider "friend class foo;" as a forward declaration
  34. // of class foo. So we work around this by providing an explicit forward declaration.
  35. // PS3_BUILDFIX
  36. class CAsyncCtxSaveGame;
  37. class CSaveGameDialogXbox : public CSaveGameBrowserDialog
  38. {
  39. DECLARE_CLASS_SIMPLE( CSaveGameDialogXbox, CSaveGameBrowserDialog );
  40. public:
  41. explicit CSaveGameDialogXbox( vgui::Panel *parent );
  42. virtual void PerformSelectedAction( void );
  43. virtual void UpdateFooterOptions( void );
  44. virtual void OnCommand( const char *command );
  45. virtual void OnDoneScanningSaveGames( void );
  46. private:
  47. friend class CAsyncCtxSaveGame;
  48. void InitiateSaving();
  49. void SaveCompleted( CAsyncCtxSaveGame *pCtx );
  50. private:
  51. bool m_bGameSaving;
  52. bool m_bNewSaveAvailable;
  53. SaveGameDescription_t m_NewSaveDesc;
  54. };
  55. #endif // SAVEGAMEDIALOG_H