mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2024-06-22 06:02:26 -04:00
Look in DATADIR for NstDatabase.xml when installed system-wide
This commit is contained in:
parent
d57e02e19b
commit
a2d9673293
|
@ -336,7 +336,7 @@ void nst_db_load() {
|
|||
}
|
||||
|
||||
// If it fails, try looking in the data directory
|
||||
snprintf(dbpath, sizeof(dbpath), "%s/NstDatabase.xml", ".");
|
||||
snprintf(dbpath, sizeof(dbpath), "%s/NstDatabase.xml", DATADIR);
|
||||
nstdb = new std::ifstream(dbpath, std::ifstream::in|std::ifstream::binary);
|
||||
|
||||
if (nstdb->is_open()) {
|
||||
|
|
Loading…
Reference in a new issue