Change order of loading config because of OpenCode patterns not applying
This commit is contained in:
@@ -896,19 +896,15 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String project_config = {};
|
Scratch scratch;
|
||||||
|
GlobalConfigBufferID = LoadConfig(Format(scratch, "%S/config.te", GetExeDir(scratch)));
|
||||||
for (int i = 1; i < argc; i += 1) {
|
for (int i = 1; i < argc; i += 1) {
|
||||||
String it = argv[i];
|
String it = argv[i];
|
||||||
if (EndsWith(it, ".te")) {
|
if (EndsWith(it, ".te")) {
|
||||||
project_config = it;
|
LoadConfig(it);
|
||||||
|
} else {
|
||||||
|
Open(argv[i]);
|
||||||
}
|
}
|
||||||
Open(argv[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Scratch scratch;
|
|
||||||
GlobalConfigBufferID = LoadConfig(Format(scratch, "%S/config.te", GetExeDir(scratch)));
|
|
||||||
if (project_config.len) {
|
|
||||||
LoadConfig(project_config);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ReportConsolef(":Set WorkDir '%S'", WorkDir);
|
ReportConsolef(":Set WorkDir '%S'", WorkDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user