Skip to content

Commit

Permalink
nall: Use the value of datadir to find the assets dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Feb 15, 2021
1 parent d609d5e commit f7c952c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions nall/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,5 @@ else
bindir ?= $(prefix)/bin
datarootdir ?= $(prefix)/share
datadir ?= $(datarootdir)
flags += -DDATADIR=\"$(datadir)\"
endif
2 changes: 2 additions & 0 deletions nall/path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ inline auto sharedData() -> string {
result.transform("\\", "/");
#elif defined(PLATFORM_MACOS)
string result = "/Library/Application Support/";
#elif defined(DATADIR)
string result = DATADIR;
#else
string result = "/usr/share/";
#endif
Expand Down

0 comments on commit f7c952c

Please sign in to comment.