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:32:02 +0800
committerimShangLi <imshangli@users.noreply.github.com>2026-12-02 12:32:02 +0800
commitd138e52199e37ece16e7df617e5ccb6635ed4303 (patch)
treef4a6c59debe2cc8a9ede255751e49e7b0f5292e9 /docs/lua-modding.md
parent76ba820fb836259a8badd17aedc1cee3d6153ca6 (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.md8
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
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 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
141not taken for something else. Without a `size`, the range reaches the end of the image. One scan covers at most 141number) is refused with the reason, not taken for something else. Without a `size`, the range reaches the end of the
142256 MiB (the whole image, when it is bigger): a mod may not make the runtime read the whole address space, which 142image. One scan covers at most 256 MiB (the whole image, when it is bigger): a mod may not make the runtime read the
143would keep the mods' thread busy for hours. 143whole 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