Allow more absolute paths in Config
This commit is contained in:
@ -23,7 +23,7 @@ namespace Elwig.Helpers {
|
|||||||
|
|
||||||
if (ini == null || !ini.TryGetKey("database.file", out string db)) {
|
if (ini == null || !ini.TryGetKey("database.file", out string db)) {
|
||||||
DatabaseFile = App.DataPath + "database.sqlite3";
|
DatabaseFile = App.DataPath + "database.sqlite3";
|
||||||
} else if (db.Length > 1 && db[1] == ':') {
|
} else if (db.Length > 1 && (db[1] == ':' || db[0] == '/' || db[0] == '\\')) {
|
||||||
DatabaseFile = db;
|
DatabaseFile = db;
|
||||||
} else {
|
} else {
|
||||||
DatabaseFile = App.DataPath + db;
|
DatabaseFile = App.DataPath + db;
|
||||||
|
Reference in New Issue
Block a user