2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
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.
 
 
 
 
 
 

36 lines
727 B

  1. #ifndef IZ_CONFIG_H
  2. #define IZ_CONFIG_H
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <minIni.h>
  6. #include "../common/IZ_common.h"
  7. typedef enum {
  8. IZ_CONFIG_TYPE_VOID,
  9. IZ_CONFIG_TYPE_STRING,
  10. IZ_CONFIG_TYPE_U8,
  11. IZ_CONFIG_TYPE_U16
  12. } IZ_ConfigType;
  13. typedef struct {
  14. IZ_ConfigType type;
  15. size_t dest_size;
  16. const char* section;
  17. const char* key;
  18. const char* cmdline_option;
  19. const void* default_value;
  20. void* validator;
  21. void* dest;
  22. } IZ_ConfigItem;
  23. void IZ_ConfigGetDefaultPath(const char*, size_t);
  24. const char* IZ_ConfigGetCommandlineOption(u8, const char*[], const char*);
  25. void IZ_ConfigInit(IZ_ConfigItem[], const char*, u8, const char*[]);
  26. IZ_ProcedureResult IZ_ConfigSave(IZ_ConfigItem[], const char*);
  27. #endif