DebugWindowExport.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. ** Command & Conquer Generals(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. #pragma once
  19. // Declared extern C to prevent name mangling, which makes life very unhappy
  20. extern "C" {
  21. // Called to create the dialog
  22. void __declspec(dllexport) CreateDebugDialog(void);
  23. // Called to (not surprisingly) destroy the dialog (and free the resources)
  24. void __declspec(dllexport) DestroyDebugDialog(void);
  25. // Call this each frame to determine whether to continue or not
  26. bool __declspec(dllexport) CanAppContinue(void);
  27. // Call this to force the app to continue. (Unpause if necessary.)
  28. void __declspec(dllexport) ForceAppContinue(void);
  29. // Call this to tell the app to run really fast
  30. bool __declspec(dllexport) RunAppFast(void);
  31. // Call this to add a message to the script window
  32. void __declspec(dllexport) AppendMessage(const char* messageToPass);
  33. // Call this to set the frame number of the app
  34. void __declspec(dllexport) SetFrameNumber(int frameNumber);
  35. // Call this to add a message, and simulate pressing Pause immediately after
  36. void __declspec(dllexport) AppendMessageAndPause(const char* messageToPass);
  37. // Call this to add or update a variable value
  38. void __declspec(dllexport) AdjustVariable(const char* variable, const char* value);
  39. // Call this to add or update a variable value, and simulate pressing Pause immediately after
  40. void __declspec(dllexport) AdjustVariableAndPause(const char* variable, const char* value);
  41. }