diff --git a/Codes.xml b/Codes.xml index a00ff14..1bdbe93 100644 --- a/Codes.xml +++ b/Codes.xml @@ -3768,7 +3768,7 @@ Ⓑ is the cursor to select the pattern, and the three digits are the numbers representing the pattern. - See [#Pattern](#pattern) for more information. + See below for more information. | Combination | Result | |---------------|-------------------------------------------------| @@ -3779,7 +3779,6 @@ When the cursor(Ⓑ) is not shown, you can press L+D-Pad Left/Right to make it appear. - ## Pattern {#pattern} ### Chain Chomp (PV4) Use the [1st digit]{.emph} to select the pattern. The 2nd and 3rd are ignored. @@ -3808,7 +3807,7 @@ ![プレビュー](/img/PatternSelector/preview.jpg) Ⓑはパターンを選択するためのカーソルであり、三つの数字はパターンの番号を表します。 - 各パターンの番号は[#パターン](#pattern)を参照してください。 + 各パターンの番号は下記を参照してください。 | ボタン | 動作 | |--------------|------------------------------| @@ -3819,7 +3818,6 @@ カーソル(Ⓑ)が表示されない時、L+十字キー左/右を押せば出てきます。 - ## パターン {#pattern} ### ワンワン(PV4) [1桁目]{.emph}でパターンを選択します。2桁目と3桁目は無視されます。 @@ -3997,15 +3995,15 @@ lib drawText sup39(サポミク) - 0.1.3 - Mar 04, 2022 + 0.2.0 + Mar 25, 2022 ```c void drawText(int x, int y, int fontSize, uint32_t colorTop, uint32_t colorBot, const char *fmt, ...); ``` - 077F0238 00000114 + 077F0238 00000110 9421FED8 7C0802A6 BF810118 7C7F1B78 9001012C 7C9E2378 @@ -4026,21 +4024,20 @@ 4A826AF5 3D204330 91210108 3D40817F 93C1010C 6FFF8000 - C00A0348 38610070 + C00A0344 38610070 C9810108 91210110 3D20817F 93E10114 - FC4C0028 C0690344 + FC4C0028 C0690340 C9810110 93A10064 FC2C0028 93A10060 4A8A43E9 38800000 38610070 4A8BD419 38C100A0 7F85E378 388000FF 38610008 - 4A826951 38610008 - 38210128 BB81FFF0 - 80010004 7C0803A6 - 4A826AEC 00000000 - 59800004 00000000 + 4A826951 BB810118 + 38210128 80010004 + 7C0803A6 4E800020 + 00000000 59800004 diff --git a/Readme.md b/Readme.md index 8afbc46..6fd7854 100644 --- a/Readme.md +++ b/Readme.md @@ -50,8 +50,8 @@ Some codes store some states in the games memory starting from address 0x817F000 | ![](./docs/reserved.svg) | `0x10C` | `0x10C` | Ingame Timer: Stop Stopwatch Flag | | ![](./docs/buffer.svg) | `0x10D` | `0x10F` | Buffer (Ingame Timer) | | ![](./docs/reserved.svg) | `0x110` | `0x237` | QF Timer: Timer Textbox | -| ![](./docs/reserved.svg) | `0x238` | `0x34B` | General Function (`drawText`) | -| ![](./docs/unallocated.svg) | `0x34C` | `0xFFF` | Not Allocated | +| ![](./docs/reserved.svg) | `0x238` | `0x347` | General Function (`drawText`) | +| ![](./docs/unallocated.svg) | `0x348` | `0xFFF` | Not Allocated | ### Adding translations diff --git a/changelog.md b/changelog.md index 541ef52..2969a0d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,28 @@ # Changelog +## Mar 25, 2022 +### Implemented dependencies system +Add `` tag in `` (e.g. `dep1,dep2,dep3`) +to specify dependencies (separated by `,` if multiple). +The system will find code with id specified with `` tag in `` (e.g. `dep1`) + +In addition, to specify dependencies for specific version, add the `version` attribute. e.g. +`dep1,dep4` + +To prevent internal library being shown on code list, +specify the category as `lib` (i.e. `lib`). + +### Added 'drawText' internal library +```c +void drawText(int x, int y, int fontSize, uint32_t colorTop, uint32_t colorBot, const char *fmt, ...); +``` +Reserve `817F0238` to `817F0347` (0x110 bytes) for this function. + +### Added 'Pattern Selector' (GMSJ01 only) +Select pattern of Chain Chomp (PV4) and Chain Chomplets (PV1). +This code use `drawText` as dependencies. + +### Update 'Position/angle/speed display' and 'Speed display' (GMSJ01 only) +Use `drawText` function to simplify the code. ## Mar 13, 2022