Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cabbf8e

Browse files
committedDec 28, 2020
nall: Use the value of datadir to find the assets dir.
1 parent 70c1144 commit cabbf8e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎nall/GNUmakefile

+1
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,5 @@ else
243243
bindir ?= $(prefix)/bin
244244
datarootdir ?= $(prefix)/share
245245
datadir ?= $(datarootdir)
246+
flags += -DDATADIR=\"$(datadir)\"
246247
endif

‎nall/path.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ inline auto sharedData() -> string {
137137
result.transform("\\", "/");
138138
#elif defined(PLATFORM_MACOS)
139139
string result = "/Library/Application Support/";
140+
#elif defined(DATADIR)
141+
string result = DATADIR;
140142
#else
141143
string result = "/usr/share/";
142144
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.