2024-07-10 22:17:04 -03:00
|
|
|
((nil
|
|
|
|
(eval . (let ((root (projectile-project-root)))
|
|
|
|
(let ((includes (list "/opt/psn00bsdk/include/libpsn00b"
|
2024-07-11 09:27:03 -03:00
|
|
|
(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)
|
2024-08-24 21:47:19 -03:00
|
|
|
(setq-local flycheck-gcc-include-path includes)
|
|
|
|
(dap-register-debug-template
|
2025-04-24 13:08:19 -03:00
|
|
|
"Sonic XA Debug"
|
|
|
|
(list :name "PSX -- Sonic XA debug"
|
2024-08-24 21:47:19 -03:00
|
|
|
:type "gdbserver"
|
|
|
|
:request "attach"
|
|
|
|
:gdbpath "/usr/bin/gdb-multiarch"
|
|
|
|
:target ":3333"
|
|
|
|
:cwd root
|
2025-04-24 13:08:19 -03:00
|
|
|
:executable (concat root "build/sonic.elf")
|
|
|
|
:args (concat "-x " root ".gdbinit")
|
|
|
|
:autorun (list "monitor reset shellhalt"
|
|
|
|
"load build/sonic.elf"
|
|
|
|
"tbreak main")
|
2024-08-24 21:47:19 -03:00
|
|
|
))
|
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)))))
|
|
|
|
)))))
|
|
|
|
|
2024-07-11 09:27:03 -03:00
|
|
|
|