engine-psx/.dir-locals.el

39 lines
1.3 KiB
EmacsLisp
Raw Permalink Normal View History

2024-07-10 22:17:04 -03:00
((nil
(eval . (let ((root (projectile-project-root)))
(let ((includes (list "/opt/psn00bsdk/include/libpsn00b"
(concat root "include")))
(neotreebuf (seq-filter (lambda (buf) (equal (buffer-name buf) " *NeoTree*"))
(buffer-list))))
2024-07-10 22:17:04 -03:00
(setq-local flycheck-clang-include-path includes)
(setq-local flycheck-gcc-include-path includes)
(dap-register-debug-template
"Sonic XA Debug"
(list :name "PSX -- Sonic XA debug"
:type "gdbserver"
:request "attach"
:gdbpath "/usr/bin/gdb-multiarch"
:target ":3333"
:cwd root
:executable (concat root "build/sonic.elf")
:args (concat "-x " root ".gdbinit")
:autorun (list "monitor reset shellhalt"
"load build/sonic.elf"
"tbreak main")
))
2024-07-12 20:48:23 -03:00
;; (when neotreebuf
;; (with-current-buffer (first neotreebuf)
;; (let ((excluded '("\\pcsx.json$"
;; "\\.frag$"
;; "\\.vert$"
;; "\\.lua$"
;; "\\.mcd$")))
;; (unless (every (lambda (n) (not (null n)))
;; (mapcar (lambda (x) (member x neo-hidden-regexp-list))
;; excluded))
;; (setq neo-hidden-regexp-list
;; (append excluded (default-value 'neo-hidden-regexp-list)))
;; (neotree-refresh)))))
)))))