mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-01 15:52:41 -06:00
ide: Instant setup now scans through more dirs
git-svn-id: svn://ultimatepp.org/upp/trunk@9606 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
374f74fddc
commit
ec326b7594
2 changed files with 33 additions and 20 deletions
|
|
@ -15,7 +15,7 @@ class DirFinder {
|
|||
void ScanDirs(const char *dir);
|
||||
|
||||
public:
|
||||
void Dir(const String& d) { dirs.Add(d); }
|
||||
void Dir(const String& d) { dirs.Add(d); DDUMP(d); }
|
||||
|
||||
String ScanForDir(const String& dir, const char *ccontains, const char *cfiles, const char *csubdirs);
|
||||
};
|
||||
|
|
@ -116,13 +116,26 @@ void bmSet(VectorMap<String, String>& bm, const char *id, const String& val)
|
|||
void InstantSetup()
|
||||
{
|
||||
DirFinder df;
|
||||
String pf = GetProgramsFolderX86();
|
||||
df.Dir(pf + "/microsoft visual studio 14.0/vc/bin");
|
||||
df.Dir(pf + "/windows kits/10");
|
||||
df.Dir(pf + "/windows kits");
|
||||
df.Dir(pf + "/microsoft visual studio 14.0");
|
||||
df.Dir(pf);
|
||||
df.Dir(GetProgramsFolder());
|
||||
|
||||
Array<FileSystemInfo::FileInfo> root = StdFileSystemInfo().Find(Null);
|
||||
for(int i = 0; i < root.GetCount(); i++) {
|
||||
if(root[i].root_style == FileSystemInfo::ROOT_FIXED) {
|
||||
int drive = *root[i].filename;
|
||||
String pf = GetProgramsFolderX86();
|
||||
pf.Set(0, drive);
|
||||
df.Dir(pf + "/microsoft visual studio 14.0/vc/bin");
|
||||
df.Dir(pf + "/windows kits/10");
|
||||
df.Dir(pf + "/windows kits");
|
||||
df.Dir(pf + "/microsoft visual studio 14.0");
|
||||
df.Dir(pf);
|
||||
pf = GetProgramsFolder();
|
||||
pf.Set(0, drive);
|
||||
df.Dir(pf);
|
||||
}
|
||||
}
|
||||
for(int i = 0; i < root.GetCount(); i++)
|
||||
if(root[i].root_style == FileSystemInfo::ROOT_FIXED)
|
||||
df.Dir(root[i].filename);
|
||||
|
||||
String default_method;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue