Skip to content

Commit

Permalink
remove old docs
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Apr 15, 2024
1 parent 79f0476 commit 088d76b
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions devel/sc.lua
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
-- Size Check
--author mifki
--luacheck:skip-entirely
--
--[====[
devel/sc
========
Size Check: scans structures for invalid vectors, misaligned structures,
and unidentified enum values.
.. note::
This script can take a very long time to complete, and DF may be
unresponsive while it is running. You can use `kill-lua` to interrupt
this script.
Examples:
* scan world::
devel/sc
* scan all globals::
devel/sc -all
* scan result of expression::
devel/sc [expr]
]====]

local utils = require('utils')

Expand All @@ -38,7 +9,6 @@ local check_vectors = true
local check_pointers = true
local check_enums = true


-- not really a queue, I know
local queue

Expand Down Expand Up @@ -119,7 +89,7 @@ local count = -1
local function check_container(obj, path)
count = count + 1
if dfhack.is_interactive() and count % 500 == 0 then
local i = ((count / 500) % 4) + 1
local i = ((count // 500) % 4) + 1
dfhack.print(prog:sub(i, i) .. '\r')
dfhack.console.flush()
end
Expand Down

0 comments on commit 088d76b

Please sign in to comment.