An emulator, assembler, and disassembler for the Sega Game Gear
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Copyright (C) 2014-2016 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. int 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. void config_dump_args(const Config*);