An emulator, assembler, and disassembler for the Sega Game Gear
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 879 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
  2. Released under the terms of the MIT License. See LICENSE for details. */
  3. #pragma once
  4. #include <stdbool.h>
  5. #define ROMS_DIR "roms"
  6. #define CONFIG_OK 0
  7. #define CONFIG_EXIT_SUCCESS 1
  8. #define CONFIG_EXIT_FAILURE 2
  9. /*
  10. We need some sort of maximum scale - with a native resolution of 160 x 144,
  11. a scale factor of 1024 will let us go up to 163,840 x 147,456 pixels.
  12. No one has a screen this large.
  13. */
  14. #define SCALE_MAX 1024
  15. /* Structs */
  16. typedef struct {
  17. bool debug;
  18. bool assemble;
  19. bool disassemble;
  20. bool fullscreen;
  21. unsigned scale;
  22. char *rom_path;
  23. char *src_path;
  24. char *dst_path;
  25. bool overwrite;
  26. } Config;
  27. /* Functions */
  28. int config_create(Config**, int, char*[]);
  29. void config_destroy(Config*);
  30. #ifdef DEBUG_MODE
  31. void config_dump_args(const Config*);
  32. #endif