mirror of https://github.com/bsnes-emu/bsnes.git
Add shared data to search paths
This commit is contained in:
parent
868fff9c06
commit
50e2373e71
|
@ -12,6 +12,9 @@ auto locate(string name) -> string {
|
|||
location = {Path::userData(), "bsnes/", name};
|
||||
if(inode::exists(location)) return location;
|
||||
|
||||
location = {Path::sharedData(), "bsnes/", name};
|
||||
if(inode::exists(location)) return location;
|
||||
|
||||
directory::create({Path::userSettings(), "bsnes/"});
|
||||
return {Path::userSettings(), "bsnes/", name};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue