File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 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 {
1212  location = {Path::userData (), " bsnes/" 
1313  if (inode::exists (location)) return  location;
1414
15+   location = {Path::sharedData (), " bsnes/" 
16+   if (inode::exists (location)) return  location;
17+ 
1518  directory::create ({Path::userSettings (), " bsnes/" 
1619  return  {Path::userSettings (), " bsnes/" 
1720}
Original file line number Diff line number Diff line change 243243  bindir ?= $(prefix)/bin 
244244  datarootdir ?= $(prefix)/share 
245245  datadir ?= $(datarootdir) 
246+   flags += -DDATADIR=\"$(datadir)\" 
246247endif 
Original file line number Diff line number Diff 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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments