File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ auto locate(string name) -> string {
12
12
location = {Path::userData (), " bsnes/" , name};
13
13
if (inode::exists (location)) return location;
14
14
15
+ location = {Path::sharedData (), " bsnes/" , name};
16
+ if (inode::exists (location)) return location;
17
+
15
18
directory::create ({Path::userSettings (), " bsnes/" });
16
19
return {Path::userSettings (), " bsnes/" , name};
17
20
}
Original file line number Diff line number Diff line change 243
243
bindir ?= $(prefix)/bin
244
244
datarootdir ?= $(prefix)/share
245
245
datadir ?= $(datarootdir)
246
+ flags += -DDATADIR=\"$(datadir)\"
246
247
endif
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ inline auto sharedData() -> string {
137
137
result.transform (" \\ " , " /" );
138
138
#elif defined(PLATFORM_MACOS)
139
139
string result = " /Library/Application Support/" ;
140
+ #elif defined(DATADIR)
141
+ string result = DATADIR;
140
142
#else
141
143
string result = " /usr/share/" ;
142
144
#endif
You can’t perform that action at this time.
0 commit comments