Пример #1
0
int main()
{
	auto projInfoOpt = ReadConfig();
	if ( !projInfoOpt )
	{
		return 0;
	}

	auto& projInfo = *projInfoOpt;
	if ( !BuildProject(projInfo) )
	{
		return 0;
	}
}
Пример #2
0
void
App::RefsReceived(BMessage *msg)
{
	entry_ref ref;
	int32 i = 0;
	while (msg->FindRef("refs",i,&ref) == B_OK)
	{
		bool isPaladin = Project::IsProject(ref);
		bool isBeIDE = IsBeIDEProject(ref);
		
		if (gBuildMode && isPaladin)
			BuildProject(ref);
		else
		if (isPaladin || isBeIDE)
			LoadProject(ref);
		else
			OpenFile(ref);
		i++;
	}
}