Dear All,
What I'm Doing... ----------------- Just got to the stage in my game's level editor where I'm incorporating the ability to deal with multiple level sets. Level sets may be deleted, created, edited, and renamed (that is, the actual DBs may be renamed). The Plan... ----------- Use DmGetNextDatabaseByTypeCreator() to build an array of LocalIDs of all currently installed level sets, and have these in a list so they user may edit/ create/ delete etc. them. I hope to keep track of the current level sets by referring solely to this array; i.e. not making repeated calls to DmGetNextDatabaseByTypeCreator() to make sure the list is up-to-date. The Question... --------------- Are these LocalIDs guaranteed to remain "valid" during the lifetime of my app? i.e. will the LocalIDs still refer to the same DBs if some are deleted/ created/ renamed etc. ? (not including the ones that have just been deleted/ created, of course!) Or should I use DmGetNextDatabaseByTypeCreator() to update the list every time some "editing" operation is performed? I could experiment to find the answer, but this approach may fail to take into account obscure circumstances where the LocalIDs are invalidated (e.g. maybe if a DB is renamed, the LocalID is invalidated, or something...), so I thought I'd ask you guys :) Since I have an alternative and not substantially less efficient approach up my sleeve, this is not a high priority question - still, I'd be interested to know the answer. Thanks for your time, Simon _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
