file.Printf("\n Execution Data\n");
if(commandLineArgs && commandLineArgs[0])
- file.Printf("\n Command Line Arguments = %s\n", commandLineArgs);
+ {
+ file.Printf("\n Command Line Arguments = ");
+ file.Puts(commandLineArgs);
+ file.Printf("\n");
+ }
if(environmentVars.count)
{
project = p;
break;
}
+ // Handle symbol loader modules:
+ {
+ char moduleName[MAX_FILENAME];
+ char * sl;
+ GetLastDirectory(bp.absoluteFilePath, moduleName);
+ // Tweak for automatically resolving symbol loader modules
+ sl = strstr(moduleName, ".main.ec");
+ if(sl && (*sl = 0, !strcmpi(moduleName, p.name)))
+ {
+ project = p;
+ break;
+ }
+ }
}
if(!project)
{
PathCatSlash(projectFilePath, equal);
newProject = LoadProject(projectFilePath);
if(newProject)
+ {
workspace.projects.Add(newProject);
+ newProject.StartMonitoring();
+ }
else if(workspace.projects.count == 0)
{
delete workspace;
}
if(project)
{
+ project.StartMonitoring();
workspace.projects.Add(project);
workspace.name = CopyString(project.name);
}
else
{
- MessageBox { type = ok, master = ide, contents = "Workspace load file failed", text = "Workspace Load File Error" }.Modal();
+ MessageBox { type = ok, master = ide, contents = $"Workspace load file failed", text = $"Workspace Load File Error" }.Modal();
delete workspace;
return null;
}
strcat(files, item.name);
}
- sprintf(title, "File%s not found", s);
- sprintf(msg, "The following file%s could not be re-opened.%s", s, files);
+ sprintf(title, $"File%s not found", s);
+ sprintf(msg, $"The following file%s could not be re-opened.%s", s, files);
MessageBox { type = ok, master = ide, contents = msg, text = title }.Modal();
if(newProject)
{
+ newProject.StartMonitoring();
workspace = Workspace { workspaceFile = filePath };
workspace.projects.Add(newProject);