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.
 
 
 
 
 

40 lines
847 B

  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 CONFIG_OK 0
  6. #define CONFIG_EXIT_SUCCESS 1
  7. #define CONFIG_EXIT_FAILURE 2
  8. /*
  9. We need some sort of maximum scale - with a native resolution of 160 x 144,
  10. a scale factor of 1024 will let us go up to 163,840 x 147,456 pixels.
  11. No one has a screen this large.
  12. */
  13. #define SCALE_MAX 1024
  14. /* Structs */
  15. typedef struct {
  16. bool debug;
  17. bool assemble;
  18. bool disassemble;
  19. bool fullscreen;
  20. unsigned scale;
  21. char *rom_path;
  22. char *src_path;
  23. char *dst_path;
  24. bool overwrite;
  25. } Config;
  26. /* Functions */
  27. int config_create(Config**, int, char*[]);
  28. void config_destroy(Config*);
  29. #ifdef DEBUG_MODE
  30. void config_dump_args(Config*);
  31. #endif