From: Bonfield
couldnt you just do something like this
program New;
{.Include SRL\SRL\Misc\Smart.Scar}
{.Include SRL\SRL.Scar}
{.Include SRL\SRL\Reflection\Reflection.Scar}
var
d: integer;
procedure LoadDTM(DTM: string);
begin
case DTM of
'tree': d := DTMFromString('78DA63E4656460F8C48002FEFFFF0FA619A17' +
'C464720EB2E0135F381ACE704D41800592B08A89104B26E1250E3' +
'0464C930E257930A64891350F30D487CC16F17004EFB2033');
'rock': d := DTMFromString('78DA63E4656460F8C48002FEFFFF0FA619A17' +
'C464720EB2E0135F381ACE704D41800592B08A89104B26E1250E3' +
'0464C930E257930A64891350F30D487CC16F17004EFB2033');
end;
end;
begin
loadDTM('tree')
end.
Well what i mean is if you wanted to load both of those, then you would have to do 2 lines, and if you have to load a lot of dtm's writing all those lines gets tiresome :p
From: Wizzup?
You could have an Array of String.
Store all the actual encrypted DTM Data in there, and use it when you need it.
MyTempDTM := DTMFromString(DTMArray[somenumber]);
DoSomethingWithTheDTM;
FreeDTM(MyTempDTM);
im not sure what you mean =/