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
		completeidx = 0;
}

bool
execfile(OFString *cfgfile)
{
	@autoreleasepool {

		string s;
		strcpy_s(s, cfgfile.UTF8String);
		char *buf = loadfile(path(s), NULL);
		if (!buf)
			return false;

		execute(buf);


		free(buf);

		return true;
	}
}

void
exec(OFString *cfgfile)
{







>
|
|
<
|

>
|
>
>
|
>







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;
		@try {
			data = [OFMutableData dataWithContentsOfFile:cfgfile];

		} @catch (id e) {
			return false;
		}

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

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

void
exec(OFString *cfgfile)
{