mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-09 03:24:59 -06:00
ide: Instant setup now shows Progress
git-svn-id: svn://ultimatepp.org/upp/trunk@10638 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
33230b70fb
commit
4a394f160f
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
|||
#ifdef PLATFORM_WIN32
|
||||
|
||||
struct DirFinder {
|
||||
Progress pi;
|
||||
|
||||
Vector<String> dir;
|
||||
|
||||
String Get(const String& substring, const char *files);
|
||||
|
|
@ -13,6 +15,8 @@ struct DirFinder {
|
|||
DirFinder::DirFinder()
|
||||
{
|
||||
Index<String> path;
|
||||
|
||||
pi.SetText("Setting up build methods");
|
||||
|
||||
for(int i = 0; i < 3; i++) {
|
||||
HKEY key = 0;
|
||||
|
|
@ -30,6 +34,7 @@ DirFinder::DirFinder()
|
|||
break;
|
||||
|
||||
path.FindAdd(value);
|
||||
pi.Step();
|
||||
}
|
||||
RegCloseKey(key);
|
||||
}
|
||||
|
|
@ -49,6 +54,7 @@ String DirFinder::Get(const String& substring, const char *files)
|
|||
Vector<int> versions;
|
||||
Vector<String> fn = Split(files, ';');
|
||||
for(const auto& d : dir) {
|
||||
pi.Step();
|
||||
int p = d.Find(substring);
|
||||
if(p >= 0) {
|
||||
String cp = d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue