diff options
| author | imShangLi <imshangli@users.noreply.github.com> | 2026-12-02 12:40:30 +0800 |
|---|---|---|
| committer | imShangLi <imshangli@users.noreply.github.com> | 2026-12-02 12:40:30 +0800 |
| commit | ffc320527b40ecb64b8ccd25b3024b7b2e8cec6f (patch) | |
| tree | 169743b032d5a3fa064d527bd1ab1a01d54ae815 /docs/lua-modding.md | |
| parent | d138e52199e37ece16e7df617e5ccb6635ed4303 (diff) | |
D3D12-LUA-MEMORY-SCAN-BOUNDS: the second review's points
- the doc says that a string which names a whole number is taken as that
number, so the sentence is true
- the test covers a negative size and a negative max too
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 02cd9ee63..062e5d6e1 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 fraction, a string that is not a | 140 | `start`, `size` and `max` are whole numbers (a string that names one is taken as that number); anything else - a negative |
| 141 | number) is refused with the reason, not taken for something else. Without a `size`, the range reaches the end of the | 141 | number, a fraction, a string that is not a number - is refused with the reason, not taken for something else. Without a |
| 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 | 142 | `size`, the range reaches the end of the image. One scan covers at most 256 MiB (the whole image, when it is bigger): a |
| 143 | whole address space, which would keep the mods' thread busy for hours. | 143 | mod may not make the runtime read the 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 |