Skip to content

Commit 552057f

Browse files
committed
nall: Use the value of datadir to find the assets dir.
1 parent f1ffb4c commit 552057f

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)