forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pokemon_data: move trade array to struct
This should help make modifications to the data easier from the Flipper interface. Note that right now this is kind of a hack, the originally named DATA_BLOCK still exists as a pointer to the struct since right now trade.cpp just expects a giant block of bytes. Because of that, the struct format _needs_ to be packed. This isn't ideal, but the compiler for the Flipper seems to be okay with it and it does indeed work. Potentially, future iterations could just use the struct itself and not need to cast to a byte array. Updates DATA_BLOCK var in header as well
- Loading branch information
1 parent
0e956db
commit 82e6961
Showing
2 changed files
with
314 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters