update.cpp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. // update.cpp
  19. // Project: Nostril (aka Postal)
  20. //
  21. // This simple module contains the "update" function(s).
  22. //
  23. // History:
  24. // 01/13/96 MJR Started.
  25. //
  26. // 08/21/97 JMI Changed Update() to UpdateSystem() and added
  27. // UpdateDisplay()s (see proto for details).
  28. //
  29. // 08/22/97 JMI Removed UpdateDisplay()s.
  30. //
  31. // 08/31/97 JMI Removed RTask::Do() call and commented out RHot::Do() call.
  32. //
  33. ////////////////////////////////////////////////////////////////////////////////
  34. #define UPDATE_CPP
  35. #include "RSPiX.h"
  36. #include "update.h"
  37. ////////////////////////////////////////////////////////////////////////////////
  38. // Macros/types/etc.
  39. ////////////////////////////////////////////////////////////////////////////////
  40. ////////////////////////////////////////////////////////////////////////////////
  41. // Variables/data
  42. ////////////////////////////////////////////////////////////////////////////////
  43. ////////////////////////////////////////////////////////////////////////////////
  44. // Function prototypes
  45. ////////////////////////////////////////////////////////////////////////////////
  46. ////////////////////////////////////////////////////////////////////////////////
  47. //
  48. // This must be called periodically to keep input flowing, audio playing, etc.
  49. //
  50. ////////////////////////////////////////////////////////////////////////////////
  51. extern void UpdateSystem(void)
  52. {
  53. rspDoSystem();
  54. // Do other stuff here.
  55. RMix::Do();
  56. }
  57. ////////////////////////////////////////////////////////////////////////////////
  58. // EOF
  59. ////////////////////////////////////////////////////////////////////////////////