diff options
| author | imShangLi <imshangli@users.noreply.github.com> | 2026-12-02 12:32:02 +0800 |
|---|---|---|
| committer | imShangLi <imshangli@users.noreply.github.com> | 2026-12-02 12:32:02 +0800 |
| commit | d138e52199e37ece16e7df617e5ccb6635ed4303 (patch) | |
| tree | f4a6c59debe2cc8a9ede255751e49e7b0f5292e9 /docs/lua-modding.md | |
| parent | 76ba820fb836259a8badd17aedc1cee3d6153ca6 (diff) | |
D3D12-LUA-MEMORY-SCAN-BOUNDS: the review's points
- the test for the default range stands on its own, so it shows red without
the fix (on the base the mod is disabled by the typed option before it
gets there)
- the doc says what is really refused: a numeric string is a whole number
and is taken
Diffstat (limited to 'docs/lua-modding.md')
| -rw-r--r-- | docs/lua-modding.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/lua-modding.md b/docs/lua-modding.md index 713b0213d..02cd9ee63 100644 --- a/docs/lua-modding.md +++ b/docs/lua-modding.md | |||
| @@ -137,10 +137,10 @@ range are refused. Patterns are hex bytes with `??` (or `?`) for any byte, space | |||
| 137 | most `max` (default 100, ceiling 10,000) addresses in order. A scan of the 114 MB image reads it once in 1 MiB steps | 137 | most `max` (default 100, ceiling 10,000) addresses in order. A scan of the 114 MB image reads it once in 1 MiB steps |
| 138 | on the Lua thread, and the time it takes does not count against the mod's time budget. | 138 | on the Lua thread, and the time it takes does not count against the mod's time budget. |
| 139 | 139 | ||
| 140 | `start`, `size` and `max` are whole numbers; anything else (a negative number, a string) is refused with the reason, | 140 | `start`, `size` and `max` are whole numbers; anything else (a negative number, a fraction, a string that is not a |
| 141 | not taken for something else. Without a `size`, the range reaches the end of the image. One scan covers at most | 141 | number) is refused with the reason, not taken for something else. Without a `size`, the range reaches the end of the |
| 142 | 256 MiB (the whole image, when it is bigger): a mod may not make the runtime read the whole address space, which | 142 | image. One scan covers at most 256 MiB (the whole image, when it is bigger): a mod may not make the runtime read the |
| 143 | would keep the mods' thread busy for hours. | 143 | whole address space, which would keep the mods' thread busy for hours. |
| 144 | 144 | ||
| 145 | What it does not do: it does not know what the title keeps where. There is no table of the title's data here (the | 145 | What it does not do: it does not know what the title keeps where. There is no table of the title's data here (the |
| 146 | title's own script natives were not found, `docs/mod-menu.md`); a mod author finds addresses with `scan` and their | 146 | title's own script natives were not found, `docs/mod-menu.md`); a mod author finds addresses with `scan` and their |