Super Mario 64s source code (from a leak on 4chan so be careful)
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.

37 lines
1.2 KiB

6 years ago
  1. #ifndef _CONFIG_H_
  2. #define _CONFIG_H_
  3. /**
  4. * @file config.h
  5. * A catch-all file for configuring various bugfixes and other settings
  6. * (maybe eventually) in SM64
  7. */
  8. // Bug Fixes
  9. // --| Categories
  10. /// Turn on bug fixes for really bad, C standard breaking code. As these bugs
  11. /// have caused compilation issues with modern GCC, these bug fixes are
  12. /// automatically enabled when compiling with GCC
  13. #define BUGFIXES_CRITICAL (0 || __GNUC__)
  14. // --| US Version Nintendo Bug Fixes
  15. /// Fixes bug where obtaining over 999 coins sets the number of lives to 999 (or -25)
  16. #define BUGFIX_MAX_LIVES (0 || VERSION_US)
  17. /// Fixes bug in Bob-Omb Battlefield where entering a warp stops the Koopa race music
  18. #define BUGFIX_KOOPA_RACE_MUSIC (0 || VERSION_US)
  19. // --| Goddard / Mario Head Bug Fixes
  20. /// Goddard left out important and necessary return statements; this puts them back in
  21. #define BUGFIX_GODDARD_MISSING_RETURN (0 || BUGFIXES_CRITICAL)
  22. /// It seems that Goddard only declared, not prototyped some functions. This lead to
  23. /// incorrect promotion of floats to doubles.
  24. #define BUGFIX_GODDARD_BAD_DECLARATIONS (0 || BUGFIXES_CRITICAL)
  25. //Screen Size Defines
  26. #define SCREEN_WIDTH 320
  27. #define SCREEN_HEIGHT 240
  28. //Border Height Define for NTSC Versions
  29. #define BORDER_HEIGHT 8
  30. #endif