Commit Graph

3063 Commits

Author SHA1 Message Date
Rachel
ad26daf9e4 Update metroskrew to 0.1.3 (#534) 2025-06-01 16:36:05 -07:00
tillgeissler
809ed917fa Document Data Transfer Objects for Battle Frontier (#531)
* Document Data Transfer Objects for Battle Frontier

* add more files

* fix clang-format

* PR feedback
2025-05-31 20:10:38 -07:00
Morglom
c53362b08c Document battle bag task (#530)
* Rename and move structs.

* Finish documenting battle bag task

* Move screen enum.

* Pull request changes.

* Forgot renames.
2025-05-31 20:09:21 -07:00
Rachel
6e9b4c3adb Document screen fades and hardware windows (#529)
* Identify palette_fade and hardware_window modules

* Document hardware_window.c

* Document palette_fade.c

* Terminology shift: PaletteFade -> ScreenFade

* Decorate screen fade calls with appropriate constants

* PR feedback
2025-05-27 20:56:46 -07:00
Eduardo Quezada
fc03351879 Standarized OverlayManager names (#524)
* Standarized OverlayManager names

* Most "overlay" to "application"

* Other renames

* Last rename

* undo ov97_0222D30C.c changes
2025-05-26 12:50:57 -07:00
Eduardo Quezada
ff257ab7e6 Poffin name cleanup (#522)
* Poffin cleanup

* Review changes
2025-05-26 11:57:50 -07:00
Eduardo Quezada
3267cab139 WiFiHistory (#521) 2025-05-26 11:57:18 -07:00
Yako
5e58dfdca4 Documented part of PartyManagementData struct (#517)
* Begin documenting party screen healthbar

* really minor rename of unnamed parameter

* Big rename that will probably cause issues bc VSCode's rename is not ideal

* should match

* document part of PartyManagementData struct

* apparently I missed these
idk how it build without them

* swap include order

* begin documenting unk_02084B70.c

* clean up parameter names a bit

* some more instances of windowLayout

* continue documenting fields of PartyManagementData

* more progress on PartyManagementData

* Revert PartyMenu_MakeSelection to sub_02083370 and remove enum

* name all unnamed PartyManagementData variables partyMan
2025-05-26 11:07:32 -07:00
Rachel
6f0b6bcf30 Update compilation database generator for metroskrew (#528) 2025-05-26 00:12:17 -07:00
Eduardo Quezada
945624805e BattleFrontier struct renaming (#520) 2025-05-24 20:42:21 -07:00
Eduardo Quezada
cb8dd96354 Rename SaveData uses (#519) 2025-05-23 22:57:46 -07:00
Eduardo Quezada
f8e6a6aae0 Document calls to Heap_AllocFromHeapAtEnd (#518)
* Document calls to `Heap_AllocFromHeapAtEnd`

* format
2025-05-23 22:40:16 -07:00
Morglom
b0f4990576 Document battle bag utility (#512)
* Rename and document functions

* Rename files.

* Remove redundant array

* Renames.

* Last renames.

* Small fix

* Remove unnecessary brackets.

* Pull Request changes.

* Forgot these fields.

* Further changes.
2025-05-23 22:38:57 -07:00
Rachel
f394fd0382 refactor: Change the extension of .naix to .naix.h throughout (#516) 2025-05-22 20:46:01 -07:00
Rachel
a5f5620c82 build: Refine the dependency chain for pokefoot.naix (#515) 2025-05-22 20:04:41 -07:00
h2o-DS
57fbaeca7e Unopack pokefoot.narc and Document pokedex_footprint (#513)
* generate pokefoot.narc

Unpacked pokefoot.narc
Each species folder now contains a `footprint.png`
Documented `pokedex_foot`

* Check parent folders

Added a check to make sure the species folders exist for the NCGR files.

* Function Names

Gave pokedex_foot functions more accurate names

* format header

* pal crlf

Force palettes to crlf

* naix

Added naix and order file generation for pokefoot.narc
make_pokefoot uses species constants instead of subdirs
renamed pokedex_foot and its functions

* fix merge
2025-05-21 23:50:52 -07:00
Morglom
7e355b532c Document sub menu cursor and rename position struct. (#511)
* Document sub menu cursor and rename position struct.

* Rename to grid menu cursor position

* Further pull request changes.
2025-05-21 23:47:40 -07:00
h2o-DS
72a0a05de8 Document pokedex_graphics (#507)
Some checks failed
build / build (push) Has been cancelled
* Document pokedex_graphics

ov21_021D1FA4 -> pokedex_graphics
UnkStruct_ov21_021D22F8 -> PokedexSpeciesLabel
UnkStruct_ov21_021D23F8 -> FadeTransition
UnkStruct_ov21_021D2584 -> PokedexCursorGraphics
UnkStruct_ov21_021D2648 -> CursorTransformation
UnkStruct_ov21_021D3124 -> PokedexCursorManager

* Fade to Blend

Changed `FadeTransition` to `PokedexBlendTransition`
Changed corresponging function names
Added species enum
Created `MAX_SPRITE_RESOURCE_DS`

* Format

* Update max_sprite_resource

Co-authored-by: Rachel <lhearachel@proton.me>

* Update max_sprite_resource_gen4

---------

Co-authored-by: Rachel <lhearachel@proton.me>
2025-05-19 10:42:55 -07:00
tillgeissler
98b9507eb4 refactor: Cleanup scrcmd.c (#510)
Some checks are pending
build / build (push) Waiting to run
* cleanup scrcmd.c

* refine sYesNoWindowTemplate in scrcmd.c
2025-05-18 11:23:20 -07:00
Gudf
5676ee375a Clean up and finish documenting unk_02096420 -> item_use_pokemon (#509)
* Clean up and finish documenting `unk_02096420`

* Rename `unk_02096420` -> `party_use_item`

* Use macros, rename functions to match first arg

* Rename `party_use_item` -> `item_use_pokemon`
2025-05-18 11:22:53 -07:00
Morglom
df4e827fcb Document PartyMenuCursor (#503)
Some checks failed
build / build (push) Has been cancelled
* Move struct and update code.

* Update references

* Update references to use enum.

* More enum

* Small change.

* Rename files.

* Changes.

* Rename flags as coords.

* Rename to cursor info.

* Rename to party_menu_cursor
2025-05-13 22:31:16 -07:00
Rachel
e8a900f477 Merge pull request #506 from CharlesFolz4/BoxMessages
Some checks failed
build / build (push) Has been cancelled
Document box messages
2025-05-12 13:21:32 -07:00
narf0708@gmail.com
0d5560285e Document box messages 2025-05-10 20:53:38 -04:00
narf0708@gmail.com
14d687540f correct name of MON_DATA_MAIL_ID to MON_DATA_BALL_CAPSULE_ID 2025-05-10 18:25:16 -04:00
CharlesFolz4
85fc489aef Fix include order (#505)
Some checks failed
build / build (push) Has been cancelled
Co-authored-by: narf0708@gmail.com <narf0708@gmail.com>
2025-05-10 15:02:02 -07:00
Rachel
1a68c758eb Integrate metroskrew as the default compiler (#482)
Some checks are pending
build / build (push) Waiting to run
* Remove extraneous `include/` directory level from brightness_controller

* Wrap WSL_ACCESSING_WINDOWS detection in realpath

* Integrate metroskrew as the default compiler

* Remove tools/cw contents
2025-05-09 22:00:48 -07:00
h2o-DS
0cba5ddceb Generate pms.narc (#502)
Some checks failed
build / build (push) Has been cancelled
* Generate pms

Added offspring field to species data files
Added pms.narc to datagen_species

* Document Comments

Added pms.narc to header comments

* Remove Hardcode

* Optimization
2025-05-07 20:46:30 -07:00
Rachel
8c968ab381 refactor: Clean up data tables in item.c (#501)
Some checks failed
build / build (push) Has been cancelled
2025-05-06 09:36:21 -07:00
h2o-DS
3fd53836bd Move Files (#500)
Moved contents of src/Overlay021 to src/applications/pokedex
2025-05-06 09:35:54 -07:00
Fexty
0263b008b5 Document Particle System (#490)
Some checks failed
build / build (push) Has been cancelled
* Remove decl files and rename main ParticleSystem struct

* Document particle system new/init

* Document generic particle system functions

* Document particle system allocation functions

* Document remaining particle system getters and setters

* Particle system cleanup

* Rename particle system files

* Format files

* PR feedback
2025-05-04 11:55:13 -07:00
h2o-DS
77acefb411 Document pokedex_text_manager (#498)
* Document pokedex_text_manager

`ov21_021D4C0C` -> `pokedex_text_manager`
`UnkStruct_ov21_021D4C0C` -> `PokedexTextManager`
`UnkStruct_ov21_021D1FA4` -> `PokedexTextManagerTemplate`
`UnkStruct_ov21_021D4CA0` -> `PokedexTextData`
`UnkStruct_ov21_021D4CB8` -> `PokedexDisplayBox`

* font null

* format

* format
2025-05-04 11:48:01 -07:00
h2o-DS
521effa2bb Document Pokedex_Panel (#497)
Some checks are pending
build / build (push) Waiting to run
* Document Pokedex_Panel

`ov21_021D4EE4` -> `pokedex_panel`
`UnkStruct_ov21_021D4EE4` -> `PokedexPanelData `
`UnkStruct_ov21_021D4FE4` -> `PokedexCursorData`

* Remove Parens
2025-05-03 21:21:19 -07:00
Gudf
d84d108ea4 Change param type to enum PaletteLoadLocation (#499)
Some checks are pending
build / build (push) Waiting to run
Changes the type of parameter `palLocation` of `Font_LoadTextPalette`,
`Font_LoadScreenIndicatorsPalette` and `FieldMessage_LoadTextPalettes`
to `enum PaletteLoadLocation`, and replaces instances of literals passed
to these with the appropriate enum variant in already "fully" documented
functions.
2025-05-03 16:29:04 -07:00
Gudf
3d3ff0ba37 Document the wonder cards application (#494)
* Document the Wonder Cards application

* Rename module and text bank

Text bank `unk_0421` -> `mystery_gift_menu`
Module `ov97_02230410` -> `wonder_cards_app`
2025-05-03 15:41:55 -07:00
h2o-DS
1ff7198f44 Document PokedexUpdater (#495)
* Document PokedexUpdater

`ov21_021D3FE0` -> `pokedex_update`

Each page of the Pokedex has data and graphics functions that update each frame. `pokedex_update` calls these functions.

Also added double pointers to PokedexGraphicData where possible.

* Merge Updater Headers

Combined graphicsFunc, dataFunc, and updater to one header
Named variables in functions extending graphicsFunc and dataFunc
2025-05-03 15:09:40 -07:00
Morglom
5081c977d5 Document Touch Pad Functionality in unk_0201E3D8 (#493)
Some checks failed
build / build (push) Has been cancelled
* Setup some defines

* Auto Sampling Buffer

* Auto Sampling Buffer Frequency

* Start Auto Sampling

* Stop Auto Sampling

* Inline calc ints difference

* Clear touch on buffer data.

* Touch Screen Disabled

* SetTouchScreenBuffer

* Set Touch Screen Buffer Frequency

* Buffer

* Touch Screen State

* output auto sample buffer

* Enable Touch Screen

* Disable Touch Screen

* Disable Touch Screen Definition

* Auto Sampling State

* Fix

* Small changes.

* Rename Touch Screen Setup

* Minor changes.

* Calibrate Touch Pad Data

* Rename

* Rename

* Touch Pad Data Buffer

* Rename touch pad data buffer header

* Rename

* Progress on deciphering

* More Progress

* Naming changes.

* More renaming

* Even more renaming

* Another rename

* Rename parameters

* Rename enable and disable functions

* Touch Pad Data Buffer Transfer Method

* Rename to be more accurate

* More renames

* Some final changes

* Rename files.

* Fix Formatting

* Fix Formatting

* Delete touch_pad_buffer.h

* Push request changes.

* Polish.

* Remove accidental include.
2025-05-01 13:58:55 -07:00
CharlesFolz4
3c206367aa Document touch screen hit table action handling and Box action handling functions (#480)
Some checks are pending
build / build (push) Waiting to run
Co-authored-by: narf0708@gmail.com <narf0708@gmail.com>
2025-04-30 17:54:20 -07:00
Rachel
7f6125d4fb Separate out f-string expressions using backslashed-characters (#496)
Some checks are pending
build / build (push) Waiting to run
2025-04-30 08:44:02 -07:00
Rachel
242a04f713 Merge pull request #492 from CharlesFolz4/jsonParsingErrs
Some checks are pending
build / build (push) Waiting to run
Add exception handling to json data parsing
2025-04-29 23:59:38 -07:00
Rachel
1240a632ce Directly exit when failing to read datagen inputs 2025-04-29 11:46:20 -07:00
Rachel
307b39125e Enrich datagen's JSON errors 2025-04-28 02:10:36 -07:00
Rachel
e8a15a4777 Use Meson instead of Ninja for the specific-target recipe 2025-04-28 02:03:46 -07:00
Rachel
3f95533254 Rename math -> math_util
This resolves an issue when compiling native utilities with older
versions of Clang (and maybe GCC?) where C++ tools would include this
project header instead of the C standard library's math.h.
2025-04-28 02:03:39 -07:00
narf0708@gmail.com
4aa9f3cef8 Add exception handling to json data parsing 2025-04-27 18:16:54 -04:00
Gudf
11a62f676d Mystery Gifts cleanup (#488)
Some checks failed
build / build (push) Has been cancelled
2025-04-24 16:51:14 -07:00
Eduardo Quezada
26df8623d5 Some Villa documentation (#487)
* Start documenting Villa

* Stopping for now
2025-04-24 16:49:49 -07:00
Eduardo Quezada
ecb0f0c119 Almost finished documenting ScrCmd for sound (#486)
Some checks are pending
build / build (push) Waiting to run
* ScrCmd_IsSequencePlaying

* ScrCmd_SetSpecialBGM

* `sub_02055554` -> `Sound_TryFadeOutToBGM`

also `sub_020555CC` -> `Sound_GetBGMFadeOutAndWaitFrames`

* ScrCmd_FadeInBGM

* FadeOutMusic -> FadeOutBGM for consistency

* ScrCmd_SetBGMPlayerPaused

* ScrCmd_SetBGMFixed

* Constant uses

* ScrCmd_CheckRecordedChatotCryIsPlayable

* ScrCmd_TryRecordChatotCry

* ScrCmd_StopRecordingChatotCry

* ScrCmd_StopFanfare

* sdatID -> seqID

* ScrCmd_StoreRecordedChatotCry

* ScrCmd_SetSubScene63

* ScrCmd_SetInitialVolumeForSequence

* ScrCmd_SetScene22

* ScrCmd_SetFieldScene, ScrCmd_GetCurrentBGM

* ScrCmd_057 seqID

* Rename file

* Format
2025-04-24 03:51:56 -07:00
Eduardo Quezada
2fe369009d Finish documenting ScrCmd for daycare (#485) 2025-04-24 03:47:40 -07:00
Viperio
2b3c363616 Merge pull request #484 from AsparagusEduardo/itemScrCmd
Finish documenting ScrCmd for items
2025-04-24 10:56:05 +02:00
Eduardo Quezada
1e5c63f069 Addressed review 2025-04-23 18:49:17 -04:00