upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/lua-modding.md
diff options
context:
space:
mode:
authorimShangLi <imshangli@users.noreply.github.com>2026-12-02 12:40:30 +0800
committerimShangLi <imshangli@users.noreply.github.com>2026-12-02 12:40:30 +0800
commitffc320527b40ecb64b8ccd25b3024b7b2e8cec6f (patch)
tree169743b032d5a3fa064d527bd1ab1a01d54ae815 /docs/lua-modding.md
parentd138e52199e37ece16e7df617e5ccb6635ed4303 (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.md8
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
137most `max` (default 100, ceiling 10,000) addresses in order. A scan of the 114 MB image reads it once in 1 MiB steps 137most `max` (default 100, ceiling 10,000) addresses in order. A scan of the 114 MB image reads it once in 1 MiB steps
138on the Lua thread, and the time it takes does not count against the mod's time budget. 138on 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
141number) is refused with the reason, not taken for something else. Without a `size`, the range reaches the end of the 141number, a fraction, a string that is not a number - is refused with the reason, not taken for something else. Without a
142image. 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
143whole address space, which would keep the mods' thread busy for hours. 143mod may not make the runtime read the whole address space, which would keep the mods' thread busy for hours.
144 144
145What it does not do: it does not know what the title keeps where. There is no table of the title's data here (the 145What it does not do: it does not know what the title keeps where. There is no table of the title's data here (the
146title's own script natives were not found, `docs/mod-menu.md`); a mod author finds addresses with `scan` and their 146title's own script natives were not found, `docs/mod-menu.md`); a mod author finds addresses with `scan` and their