Commit Graph

36 Commits

Author SHA1 Message Date
AnonymousRandomPerson
83d097624b Renamed sprintf() duplicate function 2022-03-10 22:33:13 -05:00
mid-kid
99a038284b Translate all .include to #include
This decision was made to reduce the complexity of using .include whilst
juggling with tools/scaninc and tools/preproc:
- tools/scaninc doesn't apply the proper search rules for .include (it
  assumes #include behavior). In particular, it doesn't consider paths
  starting from $PWD, and doesn't scan the included files as a result.
- .include had to be processed before #include by preproc in many cases,
  as code was being included that had to be preprocessed by CPP (think
  of #define). This contradicts standard GCC behavior.

To make include paths consistent across the asm/ data/ and src/
directories, the following files were moved:
- constants/ → include/asm/constants/
- asm/macros/ → include/asm/macros/
- asm/macros.inc → include/asm/macros.inc
- include/macros/m4a.inc → include/asm/macros/m4a.inc

As part of the necessary changes for this to work, the scaninc method in
the makefile was improved to generate .d files that don't choke when
files are missing.
2021-12-20 16:29:12 +01:00
Seth Barberee
fd8720b75c
Label all entities in Boss Fight Cutscenes (#78)
* label all entities in cutscenes

* remove commented func.. wasn't matching anyway

* Skarmony -> Skarmory
2021-11-22 12:14:58 -06:00
Dennis
92a8e55fdd
Decompiled some item related functions (#42)
* decompile sub_8091290

* decompile sub_80912c8

* rename functions / struct field

* more names

* decompile 80913A0

* decompile GetItemMove

* decompile sub_80913E0

* rename function

* decompile CanSellItem function

* rename inventory struct

* add some item check functions

* fix renaming stuff

* this file shouldnt have been here

* forgot merge conflict

* decompile more item functions

* rename some stuff

* fix HM/TM naming

* Update src/code_801AFA4.c

Use enum value for USED_TM

* Fix incorrect value

Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
2021-07-10 11:23:20 -05:00
Seth Barberee
377bd14ea6
Dungeon pokemon/Floor ID JSON Part 1 (#39)
* move Thunderwave and Tiny Woods pokemon to json

* rule tweaking to actually build tool before parsing JSON

* delete .inc pokemon for tiny Woods and Thunderwave

* silence git complaining about br_ips and ips_patch

* use defines for species and pass the header file for species

* convert sinister woods

* convert MtThunderPeak

* convert silent chasm

* add trial floor_id w/ tiny woods

* change make rule name to fix compile

* MtSteel converted and bugfix

* convert few floor headers and great canyon pokemon

* code cleanup

* unify unkData into UnkTextStruct2

* more code cleanup and some text decomp

* doc more funcs and decomp/split some stuff

* document more save stuff

* more save work and move some data

* pika sniped UpdateNatureTotal

* decomp a litle and convert a few more dungeons

* better scanning for json files

* mt freeze and peak
2021-06-09 22:54:21 -05:00
Seth Barberee
eaa141c612
Keep on keepin on (#38)
* end of may dump of work

* move save text to src

* decomp a little more
2021-05-23 16:19:35 -05:00
Seth Barberee
f402e46cd3
Sese's April/May Dump (#37)
* splitting lots of pokemon square and labeling lots of other things

* actually commit this stuff

* more moving data and things

* more screen work

* split out some pokemon dungeon data

* lots of data work

* push more data work

* split kecleon, decomp another kanghaskhan func, and try to doc UpdateBGControl more

* lots of item work

* label more item things

* subtype -> category and doc types/category
2021-05-15 18:59:55 -05:00
Seth Barberee
7b142311a7
Miscellaneous Work (Again) (#30)
* work on debug menu and document that and main menu

* split, decomp, label more funcs

* split exclusive pokemon data out into C

* macro-ize exlusive pokemon data

* decomp 2 more funcs

* decomp a few more

* finally match PromptNewQuestion

* woot 7% aka more debug menu stuff
2021-03-12 15:39:07 -06:00
Seth Barberee
d72e17b5f5
Miscellaneous decomp/labeling/splitting (#29)
* lots of wonder mail work, credits and label some stuff

* nonmatch one intr func, match another, and label unused intr func

* seperate credits out

* split out debug menu and other stuff that isn't main menu

* label another func

* label some more funcs
2021-02-27 12:16:45 -06:00
Seth Barberee
8dfd044ef3
Some Personality and data (#26)
* decomp few personality funcs and clean up some pointers in the dungeon data

* de-pointer-ify friend area dialogue

* clean pointers on a personality test question

* decomp a few more main menu funcs and dump some more data

* label some funcs
2021-02-07 21:10:12 -06:00
Seth Barberee
4886c9f7dc decomp, label, doc, repeat 2021-01-28 09:24:55 -06:00
Seth Barberee
cb77386b65 more headway on Pokemon funcs and labeled in asm 2021-01-22 10:39:42 -06:00
Seth Barberee
d010378f72 mass doc'ing of symbols and some tiny decomp work 2021-01-20 16:02:26 -06:00
Seth Barberee
ec192a8fa8 5% wooo 2021-01-09 10:33:29 -06:00
Mateusz Naściszewski
1d43c0efeb Decompile GameLoop and lots of renames 2020-12-28 20:13:22 -06:00
Mateusz Naściszewski
372d737a12 Label funcs and globals 2020-12-28 20:13:22 -06:00
Seth Barberee
3106e30102 some more splitting and decomping 2020-10-17 00:51:33 -05:00
Seth Barberee
14b4ad7735 some doc'ing and decomping 2020-10-10 14:33:06 -05:00
Seth Barberee
86d3dd6797 massive split of file and decomp one func with an attempt on an another 2020-10-08 20:18:00 -05:00
Seth Barberee
93ed788787 more decomping 2020-09-26 18:30:40 -05:00
Seth Barberee
e41b0b6a35 finally found the personality test stuff. now I can work on some of that now 2020-09-24 01:12:49 -05:00
Seth Barberee
f3845bdedd more decomping of funcs 2020-09-21 00:28:50 -05:00
Seth Barberee
1ee2ec16ae further splitting and decompile one func 2020-09-18 00:00:39 -05:00
Seth Barberee
95b06d5d6b split to decomp type name string functions 2020-09-17 12:18:11 -05:00
Seth Barberee
fef46aeb0c more work on personality test data 2020-09-13 23:32:12 -05:00
Seth Barberee
7fa7e54165 more datadumping and starting to doc ewram components 2020-09-11 21:26:19 -05:00
Seth Barberee
8d788ca347 split personality test data to different file and doc personality nature text table 2020-09-10 18:47:55 -05:00
Seth Barberee
acbe5a62e1 dumped starters a and partners 2020-09-10 18:04:23 -05:00
Seth Barberee
db15fdd324 documented some fields thx to PMDe 2020-09-09 19:46:02 -05:00
Seth Barberee
adc3a5e6bb The great text dump of 2020 2020-09-08 18:46:58 -05:00
Seth Barberee
1661de58b2 doc a data thing 2020-09-08 17:21:48 -05:00
Seth Barberee
ca75133eac did a little split to make some decomping easier 2020-09-06 09:35:24 -05:00
shinny
cef20f5b34 decomp dungeon data getters 2020-06-02 14:56:12 -04:00
nullableVoidPtr
c7045ae369 Identify, split, decompile m4a, and more
ResetSprites, gCharMemCursor, gSpriteCount; analysed subheaps; identified more file pointers
2018-11-20 15:04:02 +08:00
nullableVoidPtr
f4ef62bb41 Renamed primary heap variables and partial cleanup m4a.s 2018-11-20 15:04:00 +08:00
sceptillion
501b32cb59 split save.s 2017-12-11 19:17:54 -08:00