Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1090 commits
Select commit Hold shift + click to select a range
324a157
Format newlines in surf.inc
SimplyBLGDev Jun 17, 2022
e42498a
Add bugfix from bugs_and_glitches.md to BUGFIX
rawr51919 Jun 17, 2022
b17fb2f
Delete bugs_and_glitches.md
rawr51919 Jun 17, 2022
b885e01
Update src/item_menu_icons.c
rawr51919 Jun 17, 2022
d7ab1ba
Fix formatting
rawr51919 Jun 17, 2022
f02ea58
Add comment description of this bugfix
rawr51919 Jun 17, 2022
de1145e
Merge pull request #1688 from coltongit/patch-4
GriffinRichards Jun 17, 2022
7a6b417
Remove UBFIX related to task destruction
GriffinRichards Jun 17, 2022
23e9455
document design oddity, use constants, correct comment
Kurausukun Jun 18, 2022
d3c8346
fix type, add bugfix
Kurausukun Jun 18, 2022
d11b04f
Merge pull request #1690 from Kurausukun/ai_doc
GriffinRichards Jun 18, 2022
5722232
Merge pull request #1678 from GriffinRichards/const-frontier
GriffinRichards Jun 18, 2022
c8e6d69
Format newline in BattleBattleFrontier_BattlePikeLobby/scripts.inc
rawr51919 Jun 18, 2022
a931874
Merge pull request #1691 from coltongit/patch-5
GriffinRichards Jun 18, 2022
21ed288
Merge pull request #1687 from SimplyBLGDev/patch-1
GriffinRichards Jun 18, 2022
3de23b3
Supplant https://github.com/pret/pokeemerald/pull/1579
rawr51919 Jun 19, 2022
fa1ae45
Merge pull request #1692 from coltongit/script-fixes
GriffinRichards Jun 19, 2022
5d7140f
Fix missing COPYWIN_FULL constant use
sphericalice Jun 19, 2022
a5291cb
Merge pull request #1694 from sphericalice/patch-1
GriffinRichards Jun 19, 2022
c2a08cc
Merge pull request #1689 from GriffinRichards/task-ub
GriffinRichards Jun 21, 2022
8950a41
Update some GF rom header names
GriffinRichards Jun 21, 2022
2e7f500
use floats for tempo calculation
Kurausukun Jun 28, 2022
06c9e0e
Merge pull request #1697 from Kurausukun/bpm
GriffinRichards Jun 28, 2022
650f033
Merge pull request #1695 from GriffinRichards/update-gfromh
GriffinRichards Jun 29, 2022
4e76ffb
Identify a % 16
mrgriffin Jul 4, 2022
8231ea2
Merge pull request #1699 from mrgriffin/field-camera-mod-16
GriffinRichards Jul 4, 2022
c9958e3
Simplify GetBattleTransitionTypeByMap
mrgriffin Jul 5, 2022
76659a4
Merge pull request #1700 from mrgriffin/battle-setup-water-transition
GriffinRichards Jul 5, 2022
e6a374f
Rename faintifabilitynotdamp and jumpifattackandspecialattackcannotfall
GriffinRichards Jul 6, 2022
2c4c949
Fix comment
GriffinRichards Jul 6, 2022
06dc93f
Clean up field_poison.c
GriffinRichards Jul 7, 2022
15f386e
Move make compare to its own build section
GriffinRichards Jul 8, 2022
a100448
Relocated TYPE_NAME_LENGTH and ABILITY_NAME_LENGTH
LOuroboros Jul 10, 2022
186f2c0
Introduce a MOVE_UNAVAILABLE constant
sphericalice Jul 11, 2022
1673532
Use MAX_MON_MOVES in Cmd_trysetencore
sphericalice Jul 11, 2022
a359db6
Merge pull request #1704 from LOuroboros/typeAbNameLength
GriffinRichards Jul 12, 2022
30a5821
Merge pull request #1705 from sphericalice/move-unavailable
GriffinRichards Jul 12, 2022
f85b469
Fix conditional in SpriteCB_DeoxysRockFragment
GriffinRichards Jul 13, 2022
16ab534
Add some missing pocket constant usage
GriffinRichards Jul 14, 2022
26e03dc
Linked MENU_ACTION constants to the items in sStartMenuItems
LOuroboros Jul 15, 2022
8898d84
Merge pull request #1708 from LOuroboros/sStartMenuItems
GriffinRichards Jul 15, 2022
165f51a
Merge pull request #1701 from GriffinRichards/faint-cmd-name
GriffinRichards Jul 16, 2022
a8c93dc
Add missing font constants after EXT_CTRL_CODE_FONT
GriffinRichards Jul 18, 2022
151b5a5
Change GAME_LANGUAGE to LANGUAGE_ENGLISH
DizzyEggg Jul 23, 2022
a37d8b1
Documented boolean uses
AsparagusEduardo Jul 25, 2022
b59f7ae
Added a constant for NPC trainer name length (#1712)
LOuroboros Jul 26, 2022
c557c4e
Add a comment
DizzyEggg Jul 26, 2022
b7c7857
Update src/international_string_util.c
DizzyEggg Jul 26, 2022
5366e89
Merge pull request #1713 from DizzyEggg/patch-1
GriffinRichards Jul 26, 2022
1da46a4
Merge pull request #1715 from AsparagusEduardo/pret_docBooleans
GriffinRichards Jul 27, 2022
4ffe75c
Merge pull request #1707 from GriffinRichards/use-pocket-consts
GriffinRichards Jul 27, 2022
2380d13
Macros for keeping .partyFlags, .partySize, and .party in sync
mrgriffin Jul 27, 2022
b00bd8b
Cleaned by comparing evolution_scene.c with pokefirered
AsparagusEduardo Jul 27, 2022
dc47a95
Reverted comments from pokefirered
AsparagusEduardo Jul 28, 2022
456d459
Merge pull request #1718 from AsparagusEduardo/pret_cleanEvoScene
GriffinRichards Jul 28, 2022
09af742
Further cleaning after comparing with pokefirered
AsparagusEduardo Jul 28, 2022
7a8c28c
Remove duplicated CB2_InitCopyrightScreenAfterBootup
Jaizu Jul 29, 2022
591eef5
Merge pull request #1720 from Jaizu/patch-25
GriffinRichards Jul 29, 2022
9caca17
Cleanup by syncing src/battle_script_commands.c with pokefirered
AsparagusEduardo Jul 29, 2022
7b3401e
Standarized use of star in pointer types
AsparagusEduardo Jul 29, 2022
fa32f33
Review changes
AsparagusEduardo Jul 29, 2022
aa93af4
Fixed check
AsparagusEduardo Jul 29, 2022
1367268
void pointer standarized
AsparagusEduardo Jul 29, 2022
01558ff
Struct pointers star standarizing
AsparagusEduardo Jul 29, 2022
9dc64b6
Review changes
AsparagusEduardo Jul 29, 2022
5d4b76c
Review changes from pokefirered #524
AsparagusEduardo Jul 29, 2022
2214b01
Forgot to include this fix
AsparagusEduardo Jul 29, 2022
2e1bf0d
OamData mosaic FALSE
AsparagusEduardo Jul 30, 2022
40805ff
Space cleanup
AsparagusEduardo Jul 30, 2022
897b3d0
Sync src/pokeball.c with pokefirered
AsparagusEduardo Jul 30, 2022
5101811
Merge pull request #1719 from AsparagusEduardo/pret_cleanBattleScript…
GriffinRichards Jul 30, 2022
a72d4c4
Cleanup from syncing pss and mon markings
AsparagusEduardo Jul 30, 2022
7ea49ad
CpuCopy16 in UnkUtil_CpuRun
AsparagusEduardo Aug 1, 2022
cc288e3
Review changes
AsparagusEduardo Aug 1, 2022
b49f8c1
Review changes from https://github.com/pret/pokefirered/pull/525
AsparagusEduardo Aug 1, 2022
79c5a59
Merge pull request #1721 from AsparagusEduardo/pret_clean2
GriffinRichards Aug 1, 2022
99a37b5
Merge pull request #1717 from mrgriffin/trainer-party-macro
GriffinRichards Aug 2, 2022
79384ec
Merge pull request #1702 from GriffinRichards/clean-psn
GriffinRichards Aug 2, 2022
e5c36cd
MapGridIsImpassableAt -> MapGridGetCollisionAt, and add fixes
GriffinRichards Aug 3, 2022
c991131
Change language stuff based on the french decomp
DizzyEggg Aug 4, 2022
aa9ccbf
Merge pull request #1724 from DizzyEggg/lang_improvements
GriffinRichards Aug 5, 2022
2487ddb
Sector security -> signature
GriffinRichards Aug 5, 2022
079b176
Update special save sector size checks
GriffinRichards Aug 5, 2022
4b08a51
Cleanup from https://github.com/pret/pokefirered/pull/532
AsparagusEduardo Aug 8, 2022
75d52dc
Convert MON_DATA constants into enum to ease editing and addition of …
AsparagusEduardo Aug 8, 2022
1fd1870
Moved enum to include/pokemon.h
AsparagusEduardo Aug 8, 2022
bfdbbad
Split naming screen palettes/graphics, use correct image palettes, cl…
GriffinRichards Aug 8, 2022
f534e8e
Move party menu data constants
GriffinRichards Aug 10, 2022
e06ba39
Use button constants in Task_HandleChooseMonInput
GriffinRichards Aug 10, 2022
86881b1
Use PARTY_SIZE for Pokerus Nurse Conversation
WhenGryphonsFly Aug 11, 2022
cd5a03d
Merge pull request #1733 from WhenGryphonsFly/clean__pokeruspartysize
GriffinRichards Aug 11, 2022
4756581
Fix BUGFIX return statement in battle_dome.c
WhenGryphonsFly Aug 11, 2022
e814fe0
Merge pull request #1734 from WhenGryphonsFly/clean__battledomebugfix
GriffinRichards Aug 11, 2022
286a99e
Merge pull request #1723 from GriffinRichards/fix-impassable
GriffinRichards Aug 11, 2022
63468f9
Add some missing battle arena constants
GriffinRichards Aug 11, 2022
cf4d05e
Fix typo
GriffinRichards Aug 11, 2022
574cf1d
Merge pull request #1725 from GriffinRichards/security-signature
GriffinRichards Aug 12, 2022
2df6cc1
Merge pull request #1730 from GriffinRichards/sync-naming-screen
GriffinRichards Aug 12, 2022
5515e32
Clean up lock/unlock anim movement
GriffinRichards Aug 13, 2022
c5b30b7
Wildcards in ld_script.txt
mrgriffin Aug 13, 2022
3dc3dc8
Merge pull request #1738 from mrgriffin/wildcard-ld-script
GriffinRichards Aug 15, 2022
63e4a8a
Fixed instances of .string being used with spaces instead of tabs
AsparagusEduardo Aug 15, 2022
1cb659d
Renaming Script Contexts
tustin2121 Aug 15, 2022
ec73158
Moving documentation comments per request
tustin2121 Aug 15, 2022
96fa350
Merge pull request #1741 from tustin2121/tustin2121-patch-scriptcontext
GriffinRichards Aug 15, 2022
e8a05e9
Corrected additional inconsistent uses of whitespace
AsparagusEduardo Aug 15, 2022
0149f42
Corrected comment
AsparagusEduardo Aug 15, 2022
44b26cc
From pokefirered
AsparagusEduardo Aug 15, 2022
26734d8
Merge pull request #1728 from AsparagusEduardo/pret_monDataEnum
GriffinRichards Aug 15, 2022
7b0c8ec
Revert style changes
AsparagusEduardo Aug 16, 2022
e43f65c
using BATTLE_RUN constants in BattleScript_EffectTeleport
AsparagusEduardo Aug 16, 2022
2ec8f27
Add missing usage of SOUND_PAN_*
GriffinRichards Aug 16, 2022
5933c42
Synced Route 4 and 10's MapSec labels
AsparagusEduardo Aug 16, 2022
e707cdf
Merge pull request #1744 from AsparagusEduardo/pret_syncMapSec
GriffinRichards Aug 16, 2022
936ebbd
Fix phaseShit typo
GriffinRichards Aug 17, 2022
59f89bd
Misc cleanup
AsparagusEduardo Aug 18, 2022
3bc2cf9
Sync src/battle_controllers.c with pokefirered
AsparagusEduardo Aug 8, 2022
5e593a6
Ignore num_tiles if it would truncate non-transparent tiles (#1729)
mrgriffin Aug 19, 2022
cce9918
Add Wnum_tiles to additional num_tiles rules
GriffinRichards Aug 19, 2022
c2d5dd2
Additional battle anim sync
GriffinRichards Aug 17, 2022
11b4958
Incorporate commented bug fixes in contest AI scripts
GriffinRichards Aug 19, 2022
1685365
Merge pull request #1727 from AsparagusEduardo/pret_clean
GriffinRichards Aug 20, 2022
76d2d92
Merge branch 'pretmaster' into pret_clean2
AsparagusEduardo Aug 20, 2022
81ef818
Merge pull request #1731 from GriffinRichards/missing-tag
GriffinRichards Aug 21, 2022
9e175a1
Merge pull request #1735 from GriffinRichards/arena-const
GriffinRichards Aug 21, 2022
261b0ff
Standardize judgement vs judgment spelling
GriffinRichards Aug 21, 2022
3090676
Merge pull request #1740 from AsparagusEduardo/pret_stringTabs
GriffinRichards Aug 21, 2022
898ec58
Merge pull request #1737 from GriffinRichards/lock-unlock
GriffinRichards Aug 22, 2022
8a8ba92
Revert COMMON wildcards
GriffinRichards Aug 22, 2022
3771abb
Fix names and constant usage for union room classes
GriffinRichards Aug 23, 2022
90f72a7
Fixed switch syntax in Task_TryFieldPoisonWhiteOut
LOuroboros Aug 24, 2022
3a65529
Fixed KeyInterCB_DeferToEventScript comment
LOuroboros Aug 24, 2022
015961c
Re-aligned READ_PTR_FROM_TASK's 2nd line EoL
LOuroboros Aug 24, 2022
eecf968
Merge pull request #1750 from LOuroboros/patch-2
GriffinRichards Aug 24, 2022
8cc520c
Merge pull request #1751 from LOuroboros/patch-3
GriffinRichards Aug 24, 2022
32ea55d
Merge pull request #1752 from LOuroboros/patch-4
GriffinRichards Aug 24, 2022
1f4ef2a
Added constants for GetLeadMonFriendshipScore
LOuroboros Aug 25, 2022
8a1130d
Missing constant in friendshiptodamagecalculation
GriffinRichards Aug 25, 2022
11d6ae4
Renamed the GetLeadMonFriendshipScore constants
LOuroboros Aug 25, 2022
23bf67c
Removed unnecessary inclusion of header in src/field_specials.c
LOuroboros Aug 25, 2022
6fb4da6
Corrected Oldale Town Sign labels
AsparagusEduardo Aug 26, 2022
005c46f
Merge pull request #1754 from AsparagusEduardo/pret_citySigns
GriffinRichards Aug 26, 2022
c5e873a
Merge pull request #1742 from GriffinRichards/sound-pan
GriffinRichards Aug 26, 2022
0516f94
Merge pull request #1753 from LOuroboros/GetLeadMonFriendshipScore
GriffinRichards Aug 26, 2022
578064d
Add missing use of METATILE_ROW_WIDTH
GriffinRichards Aug 26, 2022
8aead3b
Merge pull request #1747 from GriffinRichards/contest-ai-bug
GriffinRichards Aug 27, 2022
481210b
Missing uses of MAX_SPRITES
AsparagusEduardo Aug 27, 2022
0a34d47
Merge remote-tracking branch 'pret/master' into pret_clean2
AsparagusEduardo Aug 27, 2022
6c457f4
Corrected uses of GetBattlerSide
AsparagusEduardo Aug 27, 2022
15d611b
Usage of BATTLE_PARTNER
AsparagusEduardo Aug 27, 2022
1f0a952
Usage of BATTLE_OPPOSITE
AsparagusEduardo Aug 27, 2022
866d916
SpriteTemplate formatting
AsparagusEduardo Aug 27, 2022
99fbad9
IS_BATTLER_OF_TYPE
AsparagusEduardo Aug 27, 2022
1c8d3a4
Removed unnecessary parenthesis
AsparagusEduardo Aug 27, 2022
0a2ac61
Merge pull request #1757 from AsparagusEduardo/pret_clean2
GriffinRichards Aug 27, 2022
e02b33e
Automatized the contents of some sideof in src/item.c
LOuroboros Sep 1, 2022
ea345f9
Picked the correct pointers for correctness' sake
LOuroboros Sep 1, 2022
b66de1f
Merge pull request #1759 from LOuroboros/pyramidSchemes
GriffinRichards Sep 1, 2022
5d346fd
Updated a couple more sizeofs
LOuroboros Sep 1, 2022
d211adb
Merge pull request #1760 from LOuroboros/bermuda
GriffinRichards Sep 1, 2022
a28fbbc
Merge pull request #1748 from GriffinRichards/fix-judgement
GriffinRichards Sep 1, 2022
c7fc2e1
Renamed TM flags to keep consistency with the rest of the repo
AsparagusEduardo Sep 2, 2022
ff53a55
Merge pull request #1761 from AsparagusEduardo/pret/tmFlagNames
GriffinRichards Sep 2, 2022
03a98c7
Sync fieldmap
GriffinRichards Sep 2, 2022
7f1c472
Update arguments for ApplyGlobalTintToPaletteSlot
GriffinRichards Sep 2, 2022
8b7230c
CpuFastFill -> CpuFastFill16 in fieldmap
GriffinRichards Sep 2, 2022
97021ba
Drop usage of global directive
GriffinRichards Sep 3, 2022
790bdd6
Using GET_BATTLER_SIDE and GET_BATTLER_SIDE2
AsparagusEduardo Sep 3, 2022
41bf6bd
Removed pointless macro
AsparagusEduardo Sep 3, 2022
797aa08
Merge pull request #1764 from AsparagusEduardo/pret/battlerMacros
GriffinRichards Sep 3, 2022
7500435
Implemented review changes from https://github.com/pret/pokefirered/p…
AsparagusEduardo Sep 5, 2022
33f10d2
Adding missing externs
tustin2121 Sep 5, 2022
c8afeea
Generate trainer pic palettes from image
GriffinRichards Sep 5, 2022
7dac3c4
Merge pull request #1766 from tustin2121/tustin2121-patch-extern
GriffinRichards Sep 6, 2022
584bfe0
[debug] add support for mgba printf
Sep 6, 2022
12bb326
Aligned FRONTIER_MONS trainer macros with the rest for consistency
AsparagusEduardo Sep 6, 2022
f334b61
Merge pull request #1769 from AsparagusEduardo/pret/pr/frontierTraine…
GriffinRichards Sep 7, 2022
74b563f
Merge pull request #1749 from GriffinRichards/ur-classes
GriffinRichards Sep 7, 2022
281bddc
Merge pull request #1765 from AsparagusEduardo/pret/pokefirered_sync4
GriffinRichards Sep 7, 2022
3a0759d
[doc] fix misnamed dma <--> aslr
Sep 7, 2022
af17257
Merge pull request #1771 from SBird1337/doc/aslr
GriffinRichards Sep 7, 2022
05c1361
Undefined temporary preproc macro HIBYTE
LOuroboros Sep 7, 2022
c5e1fea
Merge pull request #1772 from LOuroboros/patch-1
GriffinRichards Sep 7, 2022
d58af1b
Fix 'y' actually being 'x' in CreatePCMultichoice
Jaizu Sep 8, 2022
75ded96
Merge pull request #1773 from Jaizu/patch-27
GriffinRichards Sep 8, 2022
1fa9bc1
Adjusted style of coords tables
AsparagusEduardo Sep 8, 2022
ecb75ee
Merge pull request #1774 from AsparagusEduardo/pret/pr/monCoords
GriffinRichards Sep 9, 2022
9144779
Removed repeated extern consts in strings.h
AsparagusEduardo Sep 9, 2022
c3623bc
Merge pull request #1775 from AsparagusEduardo/pret/pr/repeatedStrings
GriffinRichards Sep 9, 2022
61752a4
Added parenthesis to GET_SHINY_VALUE
AsparagusEduardo Sep 11, 2022
91cba0e
Merge pull request #1776 from AsparagusEduardo/pret/pr/ShinyValue
GriffinRichards Sep 11, 2022
65108c3
Cleaned trailing whitespace
AsparagusEduardo Sep 11, 2022
d3d8b4a
Merge pull request #1762 from GriffinRichards/sync-fieldmap
GriffinRichards Sep 12, 2022
0418706
Add misc constant usage to field_weather_effect
GriffinRichards Sep 12, 2022
5eb9312
Added missing labels in headers
AsparagusEduardo Sep 13, 2022
222362e
Fixed Raquaza typo
LOuroboros Sep 13, 2022
cb83a09
Fixed vars alignment
LOuroboros Sep 13, 2022
14c6d8b
Fixed alignment for the value of vars 0x4020 to 0x40FF
LOuroboros Sep 13, 2022
e7a459c
Merge pull request #1781 from AsparagusEduardo/pret/pr/argumentsHeaders
GriffinRichards Sep 13, 2022
4c34bab
Merge pull request #1780 from LOuroboros/raquaza
GriffinRichards Sep 13, 2022
91c040b
Merge pull request #1777 from AsparagusEduardo/pret/pr/trailingWhites…
GriffinRichards Sep 13, 2022
2d841a2
Removed unused extern declaration of old gUnknown func
LOuroboros Sep 13, 2022
509f1d5
Merge pull request #1782 from LOuroboros/patch-2
GriffinRichards Sep 13, 2022
c1dfd3c
Merge pull request #1763 from GriffinRichards/rm-global
GriffinRichards Sep 13, 2022
492380b
gReservedSpritePaletteCount using MAX_BATTLERS_COUNT for battles
AsparagusEduardo Sep 14, 2022
36494c1
Merge pull request #1783 from AsparagusEduardo/pret/pr/battlerReserve…
GriffinRichards Sep 14, 2022
bca1267
Altered MAX_FRONTIER_PARTY_SIZE to be automatically calculated by the…
AsparagusEduardo Sep 15, 2022
63156b4
Removed malloc macro
AsparagusEduardo Sep 16, 2022
e412ec3
Removed calloc macro
AsparagusEduardo Sep 16, 2022
8a68596
Removed free macro
AsparagusEduardo Sep 16, 2022
13877f7
Minor documentation
tustin2121 Sep 17, 2022
c371a44
Formatting
tustin2121 Sep 17, 2022
5c55e44
More diagrams
tustin2121 Sep 17, 2022
e74fa7b
Merge pull request #1785 from AsparagusEduardo/pret/pr/malloc
GriffinRichards Sep 22, 2022
9bcc36f
Merge pull request #1767 from GriffinRichards/trainer-pals
GriffinRichards Sep 22, 2022
b834155
Merge pull request #1779 from GriffinRichards/sync-fld-weather
GriffinRichards Sep 22, 2022
d79252a
Merge pull request #1784 from AsparagusEduardo/pret/pr/FrontierPartySize
GriffinRichards Sep 22, 2022
1107ff9
Clean up shop.c
GriffinRichards Sep 22, 2022
7e112b0
Added missing uses of JOY_xx macros
AsparagusEduardo Sep 23, 2022
ad92474
Merge pull request #1788 from AsparagusEduardo/pret/pr/newKeys
GriffinRichards Sep 23, 2022
44a5a8d
[debug] fix AGBAssert for AGBPrintf debug block
Sep 23, 2022
22329d3
[debug] use boolean constants for nStopProgram
Sep 23, 2022
12670e8
[debug] simplify macros, add EX versions
Sep 23, 2022
343d7f7
[debug] do not use heap allocation for MgbaPrintf
Sep 23, 2022
9b6b164
Merge pull request #1768 from SBird1337/feature/mgba-print
GriffinRichards Sep 23, 2022
d8b3919
Ignore Porymap's prefabs file
GriffinRichards Sep 24, 2022
0f35f08
Gender icon in naming screen based on Pokémon name length
AsparagusEduardo Sep 25, 2022
4579efe
Merge pull request #1790 from AsparagusEduardo/pret/pr/namingScreenGe…
GriffinRichards Sep 25, 2022
f695ddd
Ignore new Porymap config
GriffinRichards Sep 25, 2022
5054cf3
Documented unk40EF in Summary Screen
AsparagusEduardo Sep 26, 2022
b8bf9de
Merge pull request #1791 from AsparagusEduardo/pret/pr/unk40EF
GriffinRichards Sep 26, 2022
e515e52
Add DISPLAY_TILE_* constants
GriffinRichards Sep 26, 2022
8dad7cc
[doc] clean up casts in decompress.c
Sep 29, 2022
1ae5010
Merge pull request #1794 from SBird1337/doc/decompress-casts
GriffinRichards Sep 29, 2022
79a3441
Add additional DISPLAY_TILE_WIDTH usage
GriffinRichards Sep 29, 2022
a20334f
Removed unused functions in item header
AsparagusEduardo Oct 5, 2022
cefbf59
Merge pull request #1797 from AsparagusEduardo/pret/pr/item
GriffinRichards Oct 5, 2022
c6e4c29
Merge pull request #1792 from GriffinRichards/display-tiles
GriffinRichards Oct 6, 2022
e293986
Merge pull request #1793 from GriffinRichards/clean-shop
GriffinRichards Oct 6, 2022
f3bddd1
Fix typo
tustin2121 Oct 6, 2022
ea168d1
Fix typo 2: revelations
tustin2121 Oct 7, 2022
bb2e64b
Merge pull request #1786 from tustin2121/patch-spritestuff
GriffinRichards Oct 7, 2022
453da8a
Moved ILLEGAL_BATTLE_TYPES to include\constants\battle.h and renamed …
AsparagusEduardo Oct 7, 2022
044898f
Documented missing gSoftResetDisabled uses
AsparagusEduardo Oct 7, 2022
dc97eca
combine "unused" field into tile buffer
Kurausukun Oct 11, 2022
bbb4ee3
Merge pull request #1801 from Kurausukun/storage_struct
GriffinRichards Oct 11, 2022
a10ec04
Color rotating gate pngs
GriffinRichards Oct 12, 2022
722e501
Merge pull request #1800 from AsparagusEduardo/pret/pr/gSoftResetDisa…
GriffinRichards Oct 13, 2022
2e128e3
Merge pull request #1799 from AsparagusEduardo/pret/pr/recordedInvalid
GriffinRichards Oct 13, 2022
803d5ad
Merge branch 'master' of https://github.com/Stevebel/pokeemerald into…
Stevebel Oct 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 22 additions & 17 deletions .github/calcrom/calcrom.pl
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/usr/bin/perl

use IPC::Cmd qw[ run ];
use Getopt::Long;

my $usage = "Usage: calcrom.pl file.map [--data]\n";

my $showData;
GetOptions("data" => \$showData) or die $usage;

(@ARGV == 1)
or die "ERROR: no map file specified.\n";
or die $usage;
open(my $file, $ARGV[0])
or die "ERROR: could not open file '$ARGV[0]'.\n";

Expand Down Expand Up @@ -57,14 +63,14 @@
# though. Uniq is pretty fast!
my $base_cmd = "nm $elffname | awk '{print \$3}' | grep '^[^_].\\{4\\}' | uniq";

# This looks for Unknown_, Unknown_, or sub_, followed by just numbers. Note that
# This looks for Unknown_, Unknown_, or sub_, followed by an address. Note that
# it matches even if stuff precedes the unknown, like sUnknown/gUnknown.
my $undoc_cmd = "grep '[Uu]nknown_[0-9a-fA-F]*\\|sub_[0-9a-fA-F]*'";
my $undoc_cmd = "grep '[Uu]nknown_[0-9a-fA-F]\\{5,7\\}\\|sub_[0-9a-fA-F]\\{5,7\\}'";

# This looks for every symbol with an address at the end of it. Some things are
# given a name based on their type / location, but still have an unknown purpose.
# For example, FooMap_EventScript_FFFFFFF.
my $partial_doc_cmd = "grep '_[0-28][0-9a-fA-F]\\{5,6\\}'";
my $partial_doc_cmd = "grep '_[0-28][0-9a-fA-F]\\{5,7\\}'";

my $count_cmd = "wc -l";

Expand Down Expand Up @@ -98,16 +104,19 @@
# Performing addition on a string converts it to a number. Any string that fails
# to convert to a number becomes 0. So if our converted number is 0, but our string
# is nonzero, then the conversion was an error.
$undocumented_as_string =~ s/^\s+|\s+$//g;
my $undocumented = $undocumented_as_string + 0;
(($undocumented != 0) and ($undocumented_as_string ne "0"))
(($undocumented != 0) or (($undocumented == 0) and ($undocumented_as_string eq "0")))
or die "ERROR: Cannot convert string to num: '$undocumented_as_string'";

$partial_documented_as_string =~ s/^\s+|\s+$//g;
my $partial_documented = $partial_documented_as_string + 0;
(($partial_documented != 0) and ($partial_documented_as_string ne "0"))
(($partial_documented != 0) or (($partial_documented == 0) and ($partial_documented_as_string eq "0")))
or die "ERROR: Cannot convert string to num: '$partial_documented_as_string'";

$total_syms_as_string =~ s/^\s+|\s+$//g;
my $total_syms = $total_syms_as_string + 0;
(($total_syms != 0) and ($total_syms_as_string ne "0"))
(($total_syms != 0) or (($total_syms == 0) and ($total_syms_as_string eq "0")))
or die "ERROR: Cannot convert string to num: '$total_syms_as_string'";

($total_syms != 0)
Expand Down Expand Up @@ -149,17 +158,13 @@
print "$undocumented symbols undocumented ($undocPct%)\n";
}

print "\n";
my $dataTotal = $srcdata + $data;
my $srcDataPct = sprintf("%.4f", 100 * $srcdata / $dataTotal);
my $dataPct = sprintf("%.4f", 100 * $data / $dataTotal);

if ($data == 0)
{
print "Data porting to C is 100% complete\n"
}
else
if ($showData)
{
print "\n";
my $dataTotal = $srcdata + $data;
my $srcDataPct = sprintf("%.4f", 100 * $srcdata / $dataTotal);
my $dataPct = sprintf("%.4f", 100 * $data / $dataTotal);

print "$dataTotal total bytes of data\n";
print "$srcdata bytes of data in src ($srcDataPct%)\n";
print "$data bytes of data in data ($dataPct%)\n";
Expand Down
2 changes: 1 addition & 1 deletion .github/calcrom/webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ if [ ! -f $map_file ]; then
fi

output=$(perl $(dirname "$0")/calcrom.pl $build_name.map | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
curl -d "{\"username\": \"$CALCROM_DISCORD_WEBHOOK_USERNAME\", \"avatar_url\": \"$CALCROM_DISCORD_WEBHOOK_AVATAR_URL\", \"content\":\"\`\`\`$build_name progress:\\n$output\`\`\`\"}" -H "Content-Type: application/json" -X POST "$CALCROM_DISCORD_WEBHOOK_URL"
curl -d "{\"username\": \"$CALCROM_DISCORD_WEBHOOK_USERNAME\", \"avatar_url\": \"$CALCROM_DISCORD_WEBHOOK_AVATAR_URL\", \"content\":\"\`\`\`\\n$build_name progress:\\n$output\\n\`\`\`\"}" -H "Content-Type: application/json" -X POST "$CALCROM_DISCORD_WEBHOOK_URL"
50 changes: 39 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,30 @@ on:

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
env:
GAME_VERSION: EMERALD
GAME_REVISION: 0
GAME_LANGUAGE: ENGLISH
MODERN: 0
COMPARE: 1
steps:
- name: Checkout
uses: actions/checkout@master

- name: Checkout syms
if: ${{ github.event_name == 'push' }}
uses: actions/checkout@master
with:
path: symbols
ref: symbols

- name: Checkout agbcc
uses: actions/checkout@master
with:
path: agbcc
repository: pret/agbcc

- name: Install binutils
run: sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi
# build-essential, git, and libpng-dev are already installed
Expand All @@ -20,21 +39,30 @@ jobs:

- name: Install agbcc
run: |
git clone https://github.com/pret/agbcc.git
cd agbcc
./build.sh
./install.sh ../
working-directory: agbcc

- name: Compare
run: make -j${nproc} compare
run: make -j${nproc} all syms

- name: Modern
run: make -j${nproc} modern
env:
MODERN: 1
COMPARE: 0
run: make -j${nproc} all

- name: Webhook
- name: Move symfiles
if: ${{ github.event_name == 'push' }}
env:
CALCROM_DISCORD_WEBHOOK_USERNAME: OK
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: https://i.imgur.com/38BQHdd.png
CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }}
run: sh .github/calcrom/webhook.sh pokeemerald
run: |
cp -v *.sym symbols/
echo "SYMBOLS_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV

- name: Update symfiles
if: ${{ github.event_name == 'push' }}
uses: EndBug/add-and-commit@v7
with:
branch: symbols
cwd: "./symbols"
add: "*.sym"
message: ${{ env.SYMBOLS_COMMIT_MSG }}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.i
*.elf
*.gba
!data/*.gba
*.sgm
*.sa1
*.ss[0-9]
Expand All @@ -29,8 +30,12 @@ build/
.DS_Store
*.ddump
.idea/
porymap.project.cfg
porymap.*.cfg
prefabs.json
.vscode/
*.a
.fuse_hidden*
*.sna
*.diff
*.sym
*.js
Loading