CvBugOptions.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. /**********************************************************************
  3. File: CvBugOptions.h
  4. Author: EmperorFool
  5. Created: 2009-01-21
  6. Calls out to the CvAppInterface Python module to check user options.
  7. Copyright (c) 2009 The BUG Mod. All rights reserved.
  8. **********************************************************************/
  9. #ifndef BUG_OPTIONS_H
  10. #define BUG_OPTIONS_H
  11. // Must use existing module because the DLL cannot see new modules in CustomAssets
  12. #define PYBugOptionsModule PYCivModule
  13. // Text prepended to option name if no XML key given
  14. #define OPTION_XML_PREFIX "BULL__"
  15. void logMsg(const char* format, ...);
  16. bool isBug();
  17. void setIsBug(bool bIsBug);
  18. bool getDefineBOOL(const char* xmlKey, bool bDefault = false);
  19. int getDefineINT(const char* xmlKey, int iDefault = 0);
  20. float getDefineFLOAT(const char* xmlKey, float fDefault);
  21. const char * getDefineSTRING(const char* xmlKey, const char * szDefault);
  22. bool getBugOptionBOOL(const char* id, bool bDefault = true, const char* xmlKey = NULL);
  23. int getBugOptionINT(const char* id, int iDefault = 0, const char* xmlKey = NULL);
  24. #endif