You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~ do not remove projects from the list if they cannot be found
+ error checking around project launching and reveal in explorer if the path cannot be found
throwruntime_error("No ProjectVersion.txt found at " + p_as_fs.string() + "\n\nEnsure the folder you selected is the root folder of a complete Unity project.");
463
+
if (filesystem::exists(projSettings)){
464
+
//the first line of ProjectVersion.txt contains the editor verison as plain text
465
+
ifstream inFile;
466
+
inFile.open(projSettings);
467
+
getline(inFile, version);
468
+
version = version.substr(17);
476
469
}
477
470
478
-
//the first line of ProjectVersion.txt contains the editor verison as plain text
479
-
string version;
480
-
ifstream inFile;
481
-
inFile.open(projSettings);
482
-
getline(inFile,version);
483
-
version = version.substr(17);
484
-
485
471
//get the modification date
486
-
structstat fileInfo;
472
+
structstat fileInfo {};
487
473
if (stat(p_as_fs.string().c_str(), &fileInfo) != 0) {
488
-
throwruntime_error("Cannot get modification date. Ensure this program has access to "+p_as_fs.string());
474
+
//throw runtime_error("Cannot get modification date. Ensure this program has access to "+p_as_fs.string());
489
475
}
490
476
491
477
project p = {name,version,ctime(&fileInfo.st_mtime),p_as_fs,};
0 commit comments