Skip to content

Commit

Permalink
add *resource-directory* for App of mac
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed May 20, 2023
1 parent 32f2a3c commit 120f729
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontends/sdl2/resource.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
(:export :get-resource-pathname))
(in-package :lem-sdl2/resource)

(defvar *resource-directory* nil)

(defun get-resource-pathname (pathname)
(or (lem:lem-relative-pathname pathname)
(asdf:system-relative-pathname :lem-sdl2 pathname)))
(if *resource-directory*
(merge-pathnames pathname *resource-directory*)
(or (lem:lem-relative-pathname pathname)
(asdf:system-relative-pathname :lem-sdl2 pathname))))

0 comments on commit 120f729

Please sign in to comment.