Remove limitation on the location of the images dir, except for the file system root, #1172

This commit is contained in:
Daniel Markstedt 2023-05-18 14:17:21 -07:00
parent 4580dd222e
commit 493d2c17f5
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ string PiscsiImage::SetDefaultFolder(const string& f)
folder = GetHomeDir() + "/" + folder;
}
else {
if (folder.find("/home/") != 0) {
return "Default image folder must be located in '/home/'";
if (folder == "/") {
return "Default image folder cannot be '/'";
}
}