GameBoy (Color) port of the GTA San Andreas arcade game Duality
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.

config.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * config.h
  3. * Duality
  4. *
  5. * Copyright (C) 2025 Thomas Buck <thomas@xythobuz.de>
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * See <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __CONFIG_H__
  20. #define __CONFIG_H__
  21. #include <gbdk/platform.h>
  22. #include <gbdk/emu_debug.h>
  23. #include <stdint.h>
  24. #include "score.h"
  25. enum debug_flag {
  26. DBG_NONE = 0,
  27. DBG_MENU = (1 << 0),
  28. DBG_MARKER = (1 << 1),
  29. DBG_GOD_MODE = (1 << 2),
  30. DBG_CLEAR_SCORE = (1 << 3),
  31. DBG_ZERO_SCORE = (1 << 4),
  32. };
  33. struct config {
  34. enum debug_flag debug_flags;
  35. uint8_t sfx_vol;
  36. uint8_t music_vol;
  37. };
  38. void conf_init(void) BANKED;
  39. void conf_write_crc(void) BANKED;
  40. struct scores *conf_scores(void) BANKED;
  41. struct config *conf_get(void) BANKED;
  42. BANKREF_EXTERN(config)
  43. #endif // __CONFIG_H__