Cube  Diff

Differences From Artifact [926958b6fe]:

To Artifact [9583e64f42]:


553
554
555
556
557
558
559

560
561


562
563

564

565
566





567
568
569
570
571
572
573
553
554
555
556
557
558
559
560


561
562


563
564
565


566
567
568
569
570
571
572
573
574
575
576
577







+
-
-
+
+
-
-
+

+
-
-
+
+
+
+
+







		completeidx = 0;
}

bool
execfile(OFString *cfgfile)
{
	@autoreleasepool {
		OFMutableData *data;
		string s;
		strcpy_s(s, cfgfile.UTF8String);
		@try {
			data = [OFMutableData dataWithContentsOfFile:cfgfile];
		char *buf = loadfile(path(s), NULL);
		if (!buf)
		} @catch (id e) {
			return false;
		}
		execute(buf);
		free(buf);

		// Ensure \0 termination.
		[data addItem:""];

		execute((char *)data.mutableItems);
		return true;
	}
}

void
exec(OFString *cfgfile)
{