ConsoleBatchFile.h 725 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. // Description : Executes an ASCII batch file of console commands...
  9. #ifndef CRYINCLUDE_CRYSYSTEM_CONSOLEBATCHFILE_H
  10. #define CRYINCLUDE_CRYSYSTEM_CONSOLEBATCHFILE_H
  11. #pragma once
  12. struct IConsoleCmdArgs;
  13. struct IConsole;
  14. class CConsoleBatchFile
  15. {
  16. public:
  17. static void Init();
  18. static bool ExecuteConfigFile(const char* filename);
  19. private:
  20. static void ExecuteFileCmdFunc(IConsoleCmdArgs* args);
  21. static IConsole* m_pConsole;
  22. };
  23. #endif // CRYINCLUDE_CRYSYSTEM_CONSOLEBATCHFILE_H