forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.lisp
31 lines (24 loc) · 950 Bytes
/
start.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(load "start-utils.lisp")
(in-package :work)
(unless *process*
(let* ((cmdline-pid (aif (second sb-ext:*posix-argv*)
(ignore-errors (read-from-string it))))
(pid (if (numberp cmdline-pid)
cmdline-pid
(progn (format t "Enter process ID:~%")
(read)))))
(setf *process* (start-debug pid))
(setf *memory* (make-memory-mirror *process* 'object-memory-mirror))))
(if (typep (os-context-of *memory*) 'os-context/windows)
(progn
(pushnew 11 (ignored-signals-of *process*))
(setf (garbage-word-of *memory*) #x33333333))
(progn
(setf (garbage-word-of *memory*) #xd2d2d2d2)))
;; disable the known object walk to speed up xml loading
;; use when updating for a new version
(setf (enumerate-known-objects? *memory*) nil)
(reload)
(resume)
(open-annotations (concatenate 'string *df-version-str* ".lst"))
(browse @global.*)