Move general config file to the config folder (#4805)

This commit is contained in:
Eduardo Quezada 2024-06-19 07:42:01 -04:00 committed by GitHub
parent 9538d53f93
commit 4d6452e14e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 15 additions and 13 deletions

View file

@ -1,4 +1,4 @@
#include "config.h" #include "config/general.h"
#include "config/battle.h" #include "config/battle.h"
#include "constants/battle.h" #include "constants/battle.h"
#include "constants/battle_anim.h" #include "constants/battle_anim.h"

View file

@ -1,4 +1,4 @@
#include "config.h" #include "config/general.h"
#include "config/battle.h" #include "config/battle.h"
#include "constants/global.h" #include "constants/global.h"
#include "constants/battle.h" #include "constants/battle.h"

View file

@ -1,4 +1,4 @@
#include "config.h" #include "config/general.h"
#include "constants/global.h" #include "constants/global.h"
#include "constants/contest.h" #include "constants/contest.h"
.include "asm/macros.inc" .include "asm/macros.inc"

View file

@ -1,4 +1,4 @@
#include "config.h" #include "config/general.h"
#include "config/battle.h" #include "config/battle.h"
#include "config/item.h" #include "config/item.h"
#include "constants/global.h" #include "constants/global.h"

View file

@ -1,5 +1,5 @@
#ifndef GUARD_CONFIG_H #ifndef GUARD_CONFIG_GENERAL_H
#define GUARD_CONFIG_H #define GUARD_CONFIG_GENERAL_H
// In the Generation 3 games, Asserts were used in various debug builds. // In the Generation 3 games, Asserts were used in various debug builds.
// Ruby/Sapphire and Emerald do not have these asserts while Fire Red // Ruby/Sapphire and Emerald do not have these asserts while Fire Red
@ -53,7 +53,7 @@
#define POKEMON_EXPANSION #define POKEMON_EXPANSION
#define ITEM_EXPANSION #define ITEM_EXPANSION
// Generation constants used in configs to define behavior // Generation constants used in configs to define behavior.
#define GEN_1 0 #define GEN_1 0
#define GEN_2 1 #define GEN_2 1
#define GEN_3 2 #define GEN_3 2
@ -63,6 +63,7 @@
#define GEN_7 6 #define GEN_7 6
#define GEN_8 7 #define GEN_8 7
#define GEN_9 8 #define GEN_9 8
// Changing GEN_LATEST's value to a different Generation will change every default setting that uses it at once.
#define GEN_LATEST GEN_9 #define GEN_LATEST GEN_9
// General settings // General settings
@ -79,4 +80,4 @@
#define UNITS UNITS_IMPERIAL #define UNITS UNITS_IMPERIAL
#define CHAR_DEC_SEPARATOR CHAR_PERIOD // CHAR_PERIOD is used as a decimal separator only in the UK and the US. The rest of the world uses CHAR_COMMA. #define CHAR_DEC_SEPARATOR CHAR_PERIOD // CHAR_PERIOD is used as a decimal separator only in the UK and the US. The rest of the world uses CHAR_COMMA.
#endif // GUARD_CONFIG_H #endif // GUARD_CONFIG_GENERAL_H

View file

@ -1,6 +1,7 @@
#ifndef GUARD_CONSTANTS_GLOBAL_H #ifndef GUARD_CONSTANTS_GLOBAL_H
#define GUARD_CONSTANTS_GLOBAL_H #define GUARD_CONSTANTS_GLOBAL_H
#include "config/general.h"
#include "config/battle.h" #include "config/battle.h"
#include "config/debug.h" #include "config/debug.h"
#include "config/item.h" #include "config/item.h"

View file

@ -3,7 +3,7 @@
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
#include "config.h" // we need to define config before gba headers as print stuff needs the functions nulled before defines. #include "config/general.h" // we need to define config before gba headers as print stuff needs the functions nulled before defines.
#include "gba/gba.h" #include "gba/gba.h"
#include "fpmath.h" #include "fpmath.h"
#include "metaprogram.h" #include "metaprogram.h"

View file

@ -1,7 +1,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include "gba/gba.h" #include "gba/gba.h"
#include "config.h" #include "config/general.h"
#include "malloc.h" #include "malloc.h"
#include "mini_printf.h" #include "mini_printf.h"

View file

@ -20,8 +20,8 @@
#include "constants/layouts.h" #include "constants/layouts.h"
#include "constants/region_map_sections.h" #include "constants/region_map_sections.h"
#include "constants/weather.h" #include "constants/weather.h"
#include "config/general.h"
#include "config/overworld.h" #include "config/overworld.h"
#include "config.h"
// enums // enums
enum MapPopUp_Themes enum MapPopUp_Themes

View file

@ -35,7 +35,7 @@
#include "mini_printf.h" #include "mini_printf.h"
#include "gba/types.h" #include "gba/types.h"
#include "gba/defines.h" #include "gba/defines.h"
#include "config.h" #include "config/general.h"
#include "characters.h" #include "characters.h"
#include "string_util.h" #include "string_util.h"

View file

@ -4,7 +4,7 @@
#include "gba/gba.h" #include "gba/gba.h"
#include "siirtc.h" #include "siirtc.h"
#include "config.h" #include "config/general.h"
#define STATUS_INTFE 0x02 // frequency interrupt enable #define STATUS_INTFE 0x02 // frequency interrupt enable
#define STATUS_INTME 0x08 // per-minute interrupt enable #define STATUS_INTME 0x08 // per-minute interrupt enable