SRL Archive - MSI Suggestions

IsItemLoaded


Coh3n

2010-05-16 17:16:29

I'm not sure why this wasn't added earlier (I'm pretty sure RM suggested it), but after the whole DTM errors fiasco, I thought it was about time to add it.

Now, each item will only be loaded once (if used), and they're freed on ScriptTerminate.

lordsaturn

2010-05-17 19:13:19

if DTMToString('dtm') = '' then LoadDTM;
right?

Coh3n

2010-05-17 19:19:39

From: lordsaturn
if DTMToString('dtm') = '' then LoadDTM;
right?

Basically yeah, except it's for the whole TItem.


if (isItemLoaded(which)) then
Exit;

Plus similar statements at the beginning of the necessary functions.